private static String getPropertyName ( Method method ) { String propertyName = method . getName ( ) ; if ( propertyName . startsWith ( "get" ) ) { propertyName = propertyName . substring ( 3 ) ; } else if ( propertyName . startsWith ( "is" ) ) { propertyName = propertyName . substring ( 2 ) ; } propertyName = propertyName . substring ( 0 , 1 ) . toLowerCase ( ) + propertyName . substring ( 1 ) ; return propertyName ; }
Transform method name into property name .