private Map<String,ResourceNode> createEmptyNodeMap(List<String> subResourceNames){
  Map<String,ResourceNode> map=new LinkedHashMap<>(subResourceNames.size());
  for (  String resourceName : subResourceNames) {
    map.put(resourceName.replace("/",""),null);
  }
  return map;
}

private Map < String , ResourceNode > createEmptyNodeMap ( List < String > subResourceNames ) { Map < String , ResourceNode > map = new LinkedHashMap < > ( subResourceNames . size ( ) ) ; for ( String resourceName : subResourceNames ) { map . put ( resourceName . replace ( "/" , "" ) , null ) ; } return map ; }
creates a linked hashmap with the capacity of the subresourcenames . the subresourcenames are used as keys and the value is set per default as null .
