code: private void setConnectTimeout(HttpURLConnection connection) {
          try {
              Map<String, String> endpointProperties = this.api.getEndpointProperties();
              if (endpointProperties.containsKey("timeouts.connect")) { //$NON-NLS-1$
                  int connectTimeoutMs = new Integer(endpointProperties.get("timeouts.connect")); //$NON-NLS-1$
                  connection.setConnectTimeout(connectTimeoutMs);
              }
          } catch (Throwable t) {
          }
      }
docs: If the endpoint properties includes a connect timeout override, then
  set it here.
  @param connection