Request req = new Request(this, method, resource, mergedHeaders(headers), entity, stream, allowUI); RequestList.addToEnd(req);  try { HTTPResponse resp = new HTTPResponse(gen_mod_insts(), Timeout, req); handleRequest(req, resp, null, true); return resp; } finally { RequestList.remove(req); }
return setupRequest(method,resource,headers,entity,stream,null);
    protected final HTTPResponse setupRequest(String method, String resource,					      NVPair[] headers, byte[] entity,					      HttpOutputStream stream)		throws IOException, ModuleException    {	Request req = new Request(this, method, resource,				  mergedHeaders(headers), entity, stream,				  allowUI);	RequestList.addToEnd(req);	try	{	    HTTPResponse resp = new HTTPResponse(gen_mod_insts(), Timeout, req);	    handleRequest(req, resp, null, true);	    return resp;	}	finally	    { RequestList.remove(req); }    }