@Override
  public boolean authorize(Method method, Object target) {
    // Check if forbidden by default.
    if (defaultAuthorizer.isPermanentlyForbiddenMethod(method, target)) {
      return false;
    }

    // Check if annotation is present
    return method.isAnnotationPresent(Authorized.class);
  }
@param method the {@link Method} that should be authorized.
@param target the {@link Object} on which the {@link Method} will be executed.
@return {@code true} if the method is annotated with
        {@link ExampleAnnotationBasedMethodInvocationAuthorizer.Authorized} and not permanently
        forbidden, {@code false} otherwise
geode-core/src/main/java/org/apache/geode/examples/security/ExampleAnnotationBasedMethodInvocationAuthorizer.java