/** * Returns a List of state for creating a new {@link SessionContext}. If an * exception is thrown, return nulls since throwing an exception within the * Work will set our transaction to rollback only. */ private List<Object> executeSessionContextLookup(ServiceFactory sf, Principal principal, Session session) { final LocalAdmin admin = (LocalAdmin) sf.getAdminService(); final Experimenter exp = admin.userProxy(principal.getName()); final ExperimenterGroup grp = admin.groupProxy(principal.getGroup()); return executeSessionContextLookup(sf, principal, exp, grp, session); }