private String safeName(String str){
  return str.replaceAll("[^A-Za-z0-9]","");
}

private String safeName ( String str ) { return str . replaceAll ( "[^A-Za-z0-9]" , "" ) ; }
returns a name safe to be used in the xml config file .
