code: public static Method[] getBeanMethods(Class<?> type, String propertyName, Class<?> propertyType, boolean caseSensitive)
          throws IllegalAccessException, NoSuchMethodException {
          Method methods[] = new Method[2];
          // search for the "get"
          methods[0] = getMethod(type, "get"+propertyName, propertyType, null, caseSensitive);
          // search for the "set"
          methods[1] = getMethod(type, "set"+propertyName, null, propertyType, caseSensitive);
          return methods;
      }
docs: Gets the methods within this class that implements public "bean" methods
  (get and set) for the property name. Returns an array of methods where
  index=0 is the get method and index=1 is the set method.
  For example, for a name such as "firstName", this method will
  check if the class has both getFirstName() and setFirstName() methods.
  Also, this method will validate the return type matches the propertyType
  on the getXXX() method and that the setXXX() method only accepts that
  propertyType.  The search is optionally case sensitive.
  @param type The class to search
  @param propertyName The name to search for
  @param paramType The class type of the property
  @param caseSensitive If the search is case sensitive or not
  @return An array of Methods were index=0 is the get method and index=1 is the set method
  @throws java.lang.IllegalAccessException If the method was found, but is not public.
  @throws java.lang.NoSuchMethodException If the method was not found