protected static Object fetchObject ( String key ) { String [ ] path = key . split ( "\\." ) ; Object currentValue = fakeValuesMap ; for ( String pathSection : path ) { currentValue = ( ( Map < String , Object > ) currentValue ) . get ( pathSection ) ; } return currentValue ; }
Finds map of values based on a key