presto-hive/src/main/java/io/prestosql/plugin/hive/authentication/UserGroupInformationUtils.java/ResultOrException/get
class ResultOrException:        @SuppressWarnings("unchecked")
        public T get()
                throws E
        {
            if (exception != null) {
                if (exception instanceof Error) {
                    throw (Error) exception;
                }
                if (exception instanceof RuntimeException) {
                    throw (RuntimeException) exception;
                }
                throw (E) exception;
            }
            return result;
        }