public ProtectedProperties(Properties props){
  Enumeration<?> propEnum=props.propertyNames();
  while (propEnum.hasMoreElements()) {
    String propName=(String)propEnum.nextElement();
    String propValue=props.getProperty(propName);
    super.setProperty(propName,propValue);
  }
  closed=true;
}

public ProtectedProperties ( Properties props ) { Enumeration < ? > propEnum = props . propertyNames ( ) ; while ( propEnum . hasMoreElements ( ) ) { String propName = ( String ) propEnum . nextElement ( ) ; String propValue = props . getProperty ( propName ) ; super . setProperty ( propName , propValue ) ; } closed = true ; }
creates a set of protected properties from a set of normal ones .
