Principal principal = user == null ? null : new SimplePrincipal(user);  boolean hasRole = realmMapping.doesUserHaveRole(principal, rolePrincipals);  if (log.isTraceEnabled()) { log.trace("User is authorized? " + hasRole); }  return hasRole;
return true;
   public boolean authorize(String user, Set rolePrincipals)   {         if (log.isTraceEnabled())         log.trace(               "Checking authorize on user: "               + user               + " for rolePrincipals "               + rolePrincipals.toString());            Principal principal = user == null ? null : new SimplePrincipal(user);            boolean hasRole = realmMapping.doesUserHaveRole(principal, rolePrincipals);                 if (log.isTraceEnabled())      {         log.trace("User is authorized? " + hasRole);      }          return hasRole;   }