uc.filter(KernelHelper.getSystemAdministratorEmailAddress()); uc.next(); User sysadmin = uc.getUser(); Assert.exists(sysadmin, User.class);  return sysadmin;
while(uc.next()) { User sysadmin = uc.getUser(); if (PermissionService.checkPermission(new UniversalPermissionDescriptor (PrivilegeDescriptor.ADMIN, sysadmin))) { System.err.println("Sysadmin: " + sysadmin); return sysadmin; } }
    public static User getAdminUser() {        UserCollection uc = User.retrieveAll();        try {            uc.filter(KernelHelper.getSystemAdministratorEmailAddress());            uc.next();            User sysadmin = uc.getUser();            Assert.exists(sysadmin, User.class);            return sysadmin;        } finally {            uc.close();        }    }