public TitaniumHttpClient(TitaniumModuleManager tmm, String userAgent) {
   if (httpClientThreadCounter == null) {
     httpClientThreadCounter = new AtomicInteger();
   }
   this.weakTmm = new WeakReference<TitaniumModuleManager>(tmm);
   me = this;
   onReadyStateChangeCallback = null;
   readyState = 0;
   responseText = "";
   responseDataKey = -1;
   credentials = null;
   this.userAgent = userAgent;
   this.softWebView = new SoftReference<TitaniumWebView>(tmm.getWebView());
   this.nvPairs = new ArrayList<NameValuePair>();
   this.parts = new HashMap<String, ContentBody>();
 }
 public TitaniumJSEventManager(TitaniumModuleManager manager) {
   this(manager.getWebView());
 }