public static Configuration convertProperties(Properties p){
  Configuration c=new Configuration();
  for (Enumeration e=p.keys(); e.hasMoreElements(); ) {
    String s=(String)e.nextElement();
    c.setProperty(s,p.getProperty(s));
  }
  return c;
}

public static Configuration convertProperties ( Properties p ) { Configuration c = new Configuration ( ) ; for ( Enumeration e = p . keys ( ) ; e . hasMoreElements ( ) ; ) { String s = ( String ) e . nextElement ( ) ; c . setProperty ( s , p . getProperty ( s ) ) ; } return c ; }
convert a standard properties class into a configuration class .
