title: Recurly : Connection refused during Recurly server connection through my code
body: <p>I am trying to create customers account in my recurly account.
          I got private key as i have created an account in recurly for the development purpose.
          with that key and Domain name i am trying to add customers details into my recurly account.
          For testing purpose i am just randomly creating an account id and first name in Account object and sending it to recurly account(my account).
          But during connecting to Recurly server i am getting below error.
          I have verified the connection it seems ok. from web i am able to login and connect to recurly server.</p>
  
  <pre><code>        public static void main(String[] args) {
          // TODO Auto-generated method stub
  
          // key and domain were correctly written
  
          final String apiKey = "******";     
          final String Domain = "*****";
  
          Account account = new Account();
          account.setAccountCode(UUID.randomUUID().toString());
          account.setFirstName("Jeet");
  
          RecurlyClient recurlyClient = new RecurlyClient(apiKey, Domain);
  
          // opening the recurly server.
          recurlyClient.open();  
  
          // creating account
          recurlyClient.createAccount(account);  
  
  
  
      Error logs: 
  
      3559 [main] ERROR com.ning.billing.recurly.RecurlyClient - Execution error
                          java.util.concurrent.ExecutionException: java.net.ConnectException: Connection refused: connect
                              at com.ning.http.client.providers.jdk.JDKFuture.get(JDKFuture.java:139)
                              at com.ning.http.client.providers.jdk.JDKFuture.get(JDKFuture.java:114)
                              at com.ning.billing.recurly.RecurlyClient.callRecurly(RecurlyClient.java:936)
                              at com.ning.billing.recurly.RecurlyClient.callRecurlySafe(RecurlyClient.java:905)
                              at com.ning.billing.recurly.RecurlyClient.doPOST(RecurlyClient.java:875)
                              at com.ning.billing.recurly.RecurlyClient.createAccount(RecurlyClient.java:172)
                              at ClientTesting.main(ClientTesting.java:24)
  
  
  
      Caused by: java.net.ConnectException: Connection refused: connect
                              at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method)
                              at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
                              at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
                              at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
                              at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
                              at java.net.PlainSocketImpl.connect(Unknown Source)
                              at java.net.SocksSocketImpl.connect(Unknown Source)
                              at java.net.Socket.connect(Unknown Source)
                              at sun.security.ssl.SSLSocketImpl.connect(Unknown Source)
                              at sun.net.NetworkClient.doConnect(Unknown Source)
                              at sun.net.www.http.HttpClient.openServer(Unknown Source)
                              at sun.net.www.http.HttpClient.openServer(Unknown Source)
                              at sun.net.www.protocol.https.HttpsClient.&lt;init&gt;(Unknown Source)
                              at sun.net.www.protocol.https.HttpsClient.New(Unknown Source)
                              at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(Unknown Source)
                              at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(Unknown Source)
                              at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
                              at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source)
                              at sun.net.www.protocol.http.HttpURLConnection.getOutputStream0(Unknown Source)
                              at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(Unknown Source)
                              at sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(Unknown Source)
                              at com.ning.http.client.providers.jdk.JDKAsyncHttpProvider$AsyncHttpUrlConnection.configure(JDKAsyncHttpProvider.java:556)
                              at com.ning.http.client.providers.jdk.JDKAsyncHttpProvider$AsyncHttpUrlConnection.call(JDKAsyncHttpProvider.java:232)
                              at java.util.concurrent.FutureTask.run(Unknown Source)
                              at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
                              at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
                              at java.lang.Thread.run(Unknown Source)
  </code></pre>