/**
  * Create an {@link HttpURLConnection} that is set up with the security information to connect to
  * massive
  *
  * @param url The complete URL to use (does not include the apiKey)
  * @return the {@link HttpURLConnection} with the api key and security information added
  * @throws IOException
  */
 private HttpURLConnection createHttpURLConnection(final String urlString) throws IOException {
   // Add the api key, might already have query parameters so check
   final String connectingString = urlString.contains("?") ? "&" : "?";
   return createRealHttpURLConnection(
       urlString + connectingString + "apiKey=" + loginInfo.getApiKey());
 }