Converting Hashtable to HashMap and Map.