public CommandServiceInfo(ICommandServiceInfo source){
  this.id=source.getId();
  this.name=source.getName();
  Iterator<String> keys=source.metadataKeys();
  while (keys.hasNext()) {
    String key=keys.next();
    metadata.put(key,source.getMetadata(key));
  }
}

public CommandServiceInfo ( ICommandServiceInfo source ) { this . id = source . getId ( ) ; this . name = source . getName ( ) ; Iterator < String > keys = source . metadataKeys ( ) ; while ( keys . hasNext ( ) ) { String key = keys . next ( ) ; metadata . put ( key , source . getMetadata ( key ) ) ; } }
constructs a new command service information object and copy all attributes from the given source .
