code: private static Method getMethod(Class<?> clazz, String methodName)
      {
          try
          {
              char string[] = methodName.toCharArray();
              string[0] = Character.toUpperCase(string[0]);
              methodName = new String(string);
              try
              {
                  return clazz.getDeclaredMethod("get" + methodName);
              }
              catch (NoSuchMethodException e)
              {
                  return clazz.getDeclaredMethod("is" + methodName);
              }
          }
          catch (NoSuchMethodException e)
          {
              return null;
          }
      }
docs: Returns the method with the specified name or <code>null</code> if it
  does not exist.
  
  @param clazz
  The class to check.
  @param methodName
  The method name.
  
  @return Returns the method with the specified name or <code>null</code>
  if it does not exist.