public static ResourceManager mergeProperties(ResourceManager first,ResourceManager second){
  Properties firstProps=first.getProperties();
  Properties secondProps=second.getProperties();
  Properties newProps=new Properties();
  for (  String key : firstProps.stringPropertyNames())   newProps.put(key,firstProps.getProperty(key));
  for (  String key : secondProps.stringPropertyNames())   newProps.put(key,secondProps.getProperty(key));
  return new ResourceManager(newProps);
}

public static ResourceManager mergeProperties ( ResourceManager first , ResourceManager second ) { Properties firstProps = first . getProperties ( ) ; Properties secondProps = second . getProperties ( ) ; Properties newProps = new Properties ( ) ; for ( String key : firstProps . stringPropertyNames ( ) ) newProps . put ( key , firstProps . getProperty ( key ) ) ; for ( String key : secondProps . stringPropertyNames ( ) ) newProps . put ( key , secondProps . getProperty ( key ) ) ; return new ResourceManager ( newProps ) ; }
combine two sets of properties to make a third properties object ; if both sets contain a value for the same key , the value from the second resourcemanager is selected .
