Remove the containsKey test and just let the Hashtable get method return null if the status code isn't found and avoid a double lookup.