public static String getPropertyName(String name) {
        if(name != null && (name.startsWith("get") || name.startsWith("set"))) {
            StringBuilder b = new StringBuilder(name);
            b.delete(0, 3);
            b.setCharAt(0, Character.toLowerCase(b.charAt(0)));
            return b.toString();
        } else {
            return name;
        }
    }
public static String getPropertyName ( String name ) { if ( name != null && ( name . startsWith ( "get" ) || name . startsWith ( "set" ) ) ) { StringBuilder b = new StringBuilder ( name ) ; b . delete ( 0 , 3 ) ; b . setCharAt ( 0 , Character . toLowerCase ( b . charAt ( 0 ) ) ) ; return b . toString ( ) ; } else { return name ; } }
Get the property name of a method name. For example the property name of
setSomeValue would be someValue. Names not beginning with set or get are
not changed.

@param name The name to process
@return The property name