Code example for Hashtable

0
import com.omniti.jezebel.ResmonResult; 
 
 
public class JezebelResmon extends HttpServlet { 
    private static Resmon r = new Resmon(); 
    private static Hashtable<String,ResmonResult> mods = new Hashtable<String,ResmonResult>(); 
 
    public JezebelResmon() { } 
    public void doGet(HttpServletRequest request, 
                      HttpServletResponse response) { 
        r.write(response); 
    } 
 
    static public ResmonResult getModule(String modname) { 
        ResmonResult mod; 
        mod = mods.get(modname); 
        if(mod == null) { 
            mod = r.addResult("jezebel", modname); 
            mods.put(modname, mod); 
        }