question: public static Map < String , String > parseAttributeMapping ( Set < String > mappings ) { Map < String , String > map = new CaseInsensitiveHashMap ( ) ; if ( mappings == null ) { return map ; } for ( String mapping : mappings ) { int idx = mapping . indexOf ( '=' ) ; if ( idx == - 1 ) { map . put ( mapping , mapping ) ; } else { String from = mapping . substring ( 0 , idx ) ; String to = mapping . substring ( idx + 1 ) ; map . put ( from , to ) ; } } return map ; }
target:  Parses attribute mapping settings in the format of "from=to". If there is no mapping provided, then this will be a mapping to itself.