public static Hashtable copyHashTable(Hashtable paramsMap){
  Hashtable newTable=new Hashtable();
  Enumeration keys=paramsMap.keys();
  while (keys.hasMoreElements()) {
    Object key=keys.nextElement();
    newTable.put(key,paramsMap.get(key));
  }
  return newTable;
}

public static Hashtable copyHashTable ( Hashtable paramsMap ) { Hashtable newTable = new Hashtable ( ) ; Enumeration keys = paramsMap . keys ( ) ; while ( keys . hasMoreElements ( ) ) { Object key = keys . nextElement ( ) ; newTable . put ( key , paramsMap . get ( key ) ) ; } return newTable ; }
tool function to shallow copy a hashtable .
