Properties newProperties = new Properties(); Enumeration propertyNames = arguments.propertyNames(); while (propertyNames.hasMoreElements()) { String key = (String)propertyNames.nextElement(); newProperties.setProperty(key, arguments.getProperty(key));
Properties newProperties = new Properties(experimentCopy.getDefaultNodeArguments()); Properties myProps = getArguments();  Enumeration props = myProps.keys(); while (props.hasMoreElements()) { String propertyName = (String)props.nextElement(); newProperties.setProperty(propertyName, myProps.getProperty(propertyName));
  public NodeComponent copy(Experiment experimentCopy) {    NodeComponent nodeCopy = new ExperimentNode(getShortName(),                                                 experimentCopy);    Properties newProperties = new Properties();    Enumeration propertyNames = arguments.propertyNames();    while (propertyNames.hasMoreElements()) {      String key = (String)propertyNames.nextElement();      newProperties.setProperty(key, arguments.getProperty(key));    }    nodeCopy.setArguments(newProperties);    return nodeCopy;  }