code: private static Method findGetMethod(Class<? extends Bean> beanType, String getterName) {
          try {
              return beanType.getDeclaredMethod(getterName);
          } catch (NoSuchMethodException ex) {
              try {
                  return beanType.getMethod(getterName);
              } catch (NoSuchMethodException ex2) {
                  return null;
              }
          }
      }
docs: finds a method on class or public method on super-type