public DefaultHttpClient getHttpClient() {
        if (client == null) {
            synchronized (this) {
                this.createClientWithPool();
            }
        }
        return client;
    }