class ClassUtil {

    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;
    }

}