void (Properties newProperties) { Properties properties = getProperties(); properties.clear(); if (null == newProperties) return; Enumeration<?> newPropertyNames = newProperties.propertyNames(); while (newPropertyNames.hasMoreElements()) { String key = newPropertyNames.nextElement().toString(); String value = newProperties.getProperty(key); properties.setProperty(key, value); } }