code: public static Method getGetterMethod(Class<?> c, String field) {
  
          try {
              return c.getMethod(getMethodName(field, GET_METHOD_PREFIX), EMPTY_CLASS);
          } catch (NoSuchMethodException e) {
              try {
                  return c.getMethod(getMethodName(field, IS_METHOD_PREFIX), EMPTY_CLASS);
              } catch (NoSuchMethodException e1) {
                  //log.info("getter method not found : " + field);
                  return null;
              }
          }
      }
docs: Gets getter method.
  
  @param c     the c
  @param field the field
  @return the getter method