private Properties cloneProperties(Properties properties){
  Properties clonedProperties=new Properties();
  for (Enumeration<?> propertyNames=properties.propertyNames(); propertyNames.hasMoreElements(); ) {
    Object key=propertyNames.nextElement();
    clonedProperties.put(key,properties.get(key));
  }
  return clonedProperties;
}

private Properties cloneProperties ( Properties properties ) { Properties clonedProperties = new Properties ( ) ; for ( Enumeration < ? > propertyNames = properties . propertyNames ( ) ; propertyNames . hasMoreElements ( ) ; ) { Object key = propertyNames . nextElement ( ) ; clonedProperties . put ( key , properties . get ( key ) ) ; } return clonedProperties ; }
creates a clone of the specified properties object .
