static OpenMethod from(Method m) {
    try {
      return new OpenMethod(m);
    } catch (OpenDataException ode) {
      final String msg = "Method " + m.getDeclaringClass().getName() + "." + m.getName()
          + " has parameter or return type that " + "cannot be translated into an open type";
      throw new IllegalArgumentException(msg, ode);
    }
  }
Static method to get the OpenMethod

@return an open method
geode-core/src/main/java/org/apache/geode/management/internal/OpenMethod.java