private static String stripKey ( final String key ) { int index = key . indexOf ( "." ) ; if ( index > 0 ) { return key . substring ( 0 , index ) ; } return null ; }
strip the original key by taking every thing from the start of the original key to the first dot .