If you make changes to this code anyway, it should be trivial to replace Hashtable with the (more advanced etc.) HashMap? The code is so old that HashMap simply didn't exist when it was initially written :)