class RestrictedMethodAuthorizer implements MethodInvocationAuthorizer {

  @Override
  public boolean authorize(Method method, Object target) {
    if (!isAllowedByDefault(method, target)) {
      return false;
    }

    try {
      authorizeRegionAccess(securityService, target);
    } catch (NotAuthorizedException noAuthorizedException) {
      return false;
    }

    return true;
  }

  public  RestrictedMethodAuthorizer(Cache cache);

}