protected static function getHTTPClientInstance(array $instanceConfig)
    {
        $username = ((isset($instanceConfig['Instance']['user']) === true) ? $instanceConfig['Instance']['user'] : '');
        $password = ((isset($instanceConfig['Instance']['pass']) === true) ? $instanceConfig['Instance']['pass'] : '');

        // Bootstrap the REST client
        $curlClient = new Curl();
        $curlClient->setVerifyPeer(false);
        $restClient = new Browser($curlClient);

        if ($username && $password) {
            $authListener = new BasicAuthListener($username, $password);
            $restClient->addListener($authListener);
        }

        return $restClient;
    }