private Map<String,RamlResource> clean(Map<String,RamlResource> publishedResources){
  Map<String,RamlResource> cleanedSet=new HashMap<>();
  if (publishedResources == null) {
    return cleanedSet;
  }
  for (  Entry<String,RamlResource> resource : publishedResources.entrySet()) {
    cleanedSet.put(clean(resource.getKey()),resource.getValue());
  }
  return cleanedSet;
}

private Map < String , RamlResource > clean ( Map < String , RamlResource > publishedResources ) { Map < String , RamlResource > cleanedSet = new HashMap < > ( ) ; if ( publishedResources == null ) { return cleanedSet ; } for ( Entry < String , RamlResource > resource : publishedResources . entrySet ( ) ) { cleanedSet . put ( clean ( resource . getKey ( ) ) , resource . getValue ( ) ) ; } return cleanedSet ; }
cleans a set of strings removing special characters and reducing the string to lower case
