code: public static RestRepositoryConnection createConnection(RestRepositoryConnectionProxy proxy) throws RepositoryBackendIOException {
          readRepoProperties(proxy);
  
          RestRepositoryConnection connection = new RestRepositoryConnection(repoProperties.getProperty(REPOSITORY_URL_PROP).trim());
          connection.setProxy(proxy);
  
          if (repoProperties.containsKey(API_KEY_PROP)) {
              connection.setApiKey(repoProperties.getProperty(API_KEY_PROP).trim());
          }
  
          if (repoProperties.containsKey(USERID_PROP)) {
              connection.setUserId(repoProperties.getProperty(USERID_PROP).trim());
          }
          if (repoProperties.containsKey(PASSWORD_PROP)) {
              connection.setPassword(repoProperties.getProperty(PASSWORD_PROP).trim());
          }
          if (repoProperties.containsKey(SOFTLAYER_USERID_PROP)) {
              connection.setSoftlayerUserId(repoProperties.getProperty(SOFTLAYER_USERID_PROP).trim());
          }
          if (repoProperties.containsKey(SOFTLAYER_PASSWORD_PROP)) {
              connection.setSoftlayerPassword(repoProperties.getProperty(SOFTLAYER_PASSWORD_PROP).trim());
          }
          if (repoProperties.containsKey(ATTACHMENT_BASIC_AUTH_USERID_PROP)) {
              connection.setAttachmentBasicAuthUserId(repoProperties.getProperty(ATTACHMENT_BASIC_AUTH_USERID_PROP).trim());
          }
          if (repoProperties.containsKey(ATTACHMENT_BASIC_AUTH_PASSWORD_PROP)) {
              connection.setAttachmentBasicAuthPassword(repoProperties.getProperty(ATTACHMENT_BASIC_AUTH_PASSWORD_PROP).trim());
          }
          return connection;
      }
docs: Creates a LoginInfoEntry with a proxy. This will then load the default repository using a hosted properties file on DHE.
  
  @param proxy
  @throws RepositoryBackendIOException