private Map mapNameToDisplayName(Set names){
  Map map=new HashMap(names.size() * 2);
  AMViewConfig vConfig=AMViewConfig.getInstance();
  for (Iterator iter=names.iterator(); iter.hasNext(); ) {
    String name=(String)iter.next();
    if (vConfig.isServiceVisible(name)) {
      String displayName=getLocalizedServiceName(name);
      if (!name.equals(displayName)) {
        map.put(name,displayName);
      }
    }
  }
  return map;
}

private Map mapNameToDisplayName ( Set names ) { Map map = new HashMap ( names . size ( ) * 2 ) ; AMViewConfig vConfig = AMViewConfig . getInstance ( ) ; for ( Iterator iter = names . iterator ( ) ; iter . hasNext ( ) ; ) { String name = ( String ) iter . next ( ) ; if ( vConfig . isServiceVisible ( name ) ) { String displayName = getLocalizedServiceName ( name ) ; if ( ! name . equals ( displayName ) ) { map . put ( name , displayName ) ; } } } return map ; }
creates a mapping of the service name to the display name for the service .
