class UserSourceRealm extends AuthorizingRealm {

  @Override
  public void checkPermissions(PrincipalCollection subjectPrincipal, String... requiredPermissions) throws AuthorizationException {
    if (requiredPermissions.length > 0) {
      List<Permission> required = getPermissionResolver().resolvePermissions(requiredPermissions);
      checkPermissions(subjectPrincipal, required);
    }
  }

  public  UserSourceRealm(UserSource userSource);

}