class UserSourceRealm extends AuthorizingRealm {

  @Override
  public void checkPermission(PrincipalCollection subjectPrincipal, String requiredPermission) throws AuthorizationException {
    Permission required = getPermissionResolver().resolvePermission(requiredPermission);
    checkPermission(subjectPrincipal, required);
  }

  public  UserSourceRealm(UserSource userSource);

}