public static String normalizeFieldPathToParamName ( String fieldPath ) { String result = null ; if ( fieldPath . contains ( "." ) ) { String [ ] parts = fieldPath . split ( "\\." ) ; StringBuilder sb = new StringBuilder ( ) ; sb . append ( lowercase ( parts [ 0 ] ) ) ; for ( int i = 1 ; i < parts . length ; i ++ ) { sb . append ( uppercase ( parts [ i ] ) ) ; } result = sb . toString ( ) ; } else { result = lowercase ( fieldPath ) ; } if ( result . endsWith ( "!" ) ) { return result . substring ( 0 , result . length ( ) - 1 ) ; } return result ; }
Convert field path into Param name