/** * Creates and returns a deep copy of this <code>ConfigProperties</code> object. * Changes to the properties of the object returned from this method will not * affect the properties stored by the original object cloned. * @return a deep copy of this <code>ConfigProperties</code> object. */ public Object clone() { ConfigProperties clone = new ConfigProperties(); for (Iterator i=properties.values().iterator(); i.hasNext(); ) { Property property = (Property)i.next(); clone.addProperty(new Property(property.getName(), property.getType(), property.getValue())); } return clone; }