class UserSourceRealm extends AuthorizingRealm {

  @Override
  public boolean isPermitted(PrincipalCollection subjectPrincipal, String requiredPermission) {
    Permission required = getPermissionResolver().resolvePermission(requiredPermission);
    return isPermitted(subjectPrincipal, required);
  }

  public  UserSourceRealm(UserSource userSource);

}