private static Map < String , String > createMapFromList ( final List < String > all ) { final Map < String , String > map = new ConcurrentHashMap <> ( ) ; for ( final String documentElement : all ) { if ( documentElement != null ) { map . put ( documentElement , documentElement ) ; } } return map ; }
Creates the map from list .