code: public static Method getReadMethod(Class<?> clazz, String propertyName) throws NoSuchMethodError
      {
          String propertyNameCapitalized = capitalize(propertyName);
          try
          {
              return clazz.getMethod("get" + propertyNameCapitalized);
          }
          catch (Exception e)
          {
              try
              {
                  return clazz.getMethod("is" + propertyNameCapitalized);
              }
              catch (Exception e1)
              {
                  throw new NoSuchMethodError("Could not find getter (getXX or isXXX) for property: "
                          + propertyName);
              }
          }
      }
docs: Lookup the getter method for the given property. This can be a getXXX() or a isXXX() method.
  
  @param clazz
  type which contains the property.
  @param propertyName
  name of the property.
  @return a Method with read-access for the property.