code: private static Method findAccessor(Object target, String propertyName) {
  
          propertyName = propertyName.substring(0, 1).toUpperCase()
                       + propertyName.substring(1);
  
          try {
              return target.getClass().getMethod("get" + propertyName);
          } catch (NoSuchMethodException nsme) {
          }
  
          try {
              return target.getClass().getMethod("is" + propertyName);
          } catch (NoSuchMethodException nsme) {
          }
  
          LogFactory.getLog(ReflectionUtils.class).warn(
                  "No accessor for property '"
                  + propertyName + "' " + "found in class "
                  + target.getClass().getName());
  
          return null;
      }
docs: Returns the accessor method for the specified member property.
  For example, if the member property is "Foo", this method looks
  for a "getFoo()" method and an "isFoo()" method.
  
  If no accessor is found, this method throws an IllegalStateException.
  
  @param target the object to reflect on
  @param propertyName the name of the property to search for
  @return the accessor method
  @throws IllegalStateException if no matching method is found