 
   Promise = env.require 'bluebird'
   rest = require('restler-promise')(Promise)
+  http = require 'http'
   parseXmlString = Promise.promisify require('xml2js').parseString
   retry = require('promise-retryer')(Promise)
   commons = require('pimatic-plugin-commons')(env)


    _requestUpdate: (command, param="") =>
      @base.debug "http://#{@host}:#{@port}/goform/#{@_mapZoneToUrlPath command}XmlStatusLite.xml"
      return rest.get "http://#{@host}:#{@port}/goform/#{@_mapZoneToUrlPath command}XmlStatusLite.xml"
      .then (response) =>
        if response.data.length isnt 0
          @base.debug response.data

      return new Promise (resolve, reject) =>
        if param isnt '?'
          @base.debug "http://#{@host}:#{@port}/goform/formiPhoneAppDirect.xml?#{command}#{param}"
          promise = rest.get "http://#{@host}:#{@port}/goform/formiPhoneAppDirect.xml?#{command}#{param}", @opts
          .then =>
            @_triggerResponse command, param
        else
