@Override
 protected Group[] getRoleSets() throws LoginException {
   SimpleGroup roles = new SimpleGroup("Roles");
   Group[] roleSets = {roles};
   for (Role role : access.getUser().getRoles()) {
     roles.addMember(new SimplePrincipal(role.getName()));
   }
   return roleSets;
 }
 @Override
 protected Principal getIdentity() {
   Principal principal = new UserPrincipal(access.getUser());
   return principal;
 }