public static String extractKeyHead ( String key , String delimeter ) { int index = key . indexOf ( delimeter ) ; if ( index == - 1 ) { return key ; } String result = key . substring ( 0 , index ) ; return result ; }
Extract the value of keyHead .