code: private MIMETypedStream getFromWeb(ContentManagerParams params)
              throws ModuleInitializationException, GeneralException, RangeNotSatisfiableException {
             String username = params.getUsername();
          String password = params.getPassword();
          boolean backendSSL = false;
          String url = params.getUrl();
          // in case host is 'local.fedora.server', and has not been normalized (e.g. on validating datastream add)
          url = params.getTranslator().makeAbsoluteURLs(url);
          if (ServerUtility.isURLFedoraServer(url) && !params.isBypassBackend()) {
              BackendSecuritySpec m_beSS;
              BackendSecurity m_beSecurity =
                      (BackendSecurity) getServer()
                              .getModule("org.fcrepo.server.security.BackendSecurity");
              try {
                  m_beSS = m_beSecurity.getBackendSecuritySpec();
              } catch (Exception e) {
                  throw new ModuleInitializationException(
                          "Can't intitialize BackendSecurity module (in default access) from Server.getModule",
                          getRole());
              }
              Hashtable<String, String> beHash =
                      m_beSS.getSecuritySpec(BackendPolicies.FEDORA_INTERNAL_CALL);
              username = beHash.get("callUsername");
              password = beHash.get("callPassword");
              backendSSL =
                      Boolean.parseBoolean(beHash.get("callSSL"));
              if (backendSSL) {
                  if (params.getProtocol().equals("http")) {
                      url = url.replaceFirst("http:", "https:");
                  }
                  url =
                          url.replaceFirst(":" + fedoraServerPort + "/",
                                              ":" + fedoraServerRedirectPort
                                                      + "/");
              }
              if (logger.isDebugEnabled()) {
                  logger.debug("************************* backendUsername: "
                          + username + "     backendPassword: "
                          + password + "     backendSSL: " + backendSSL);
                  logger.debug("************************* doAuthnGetURL: " + url);
              }
  
          }
          return getFromWeb(url, username, password, params.getMimeType(),
                  isHEADRequest(params), params.getContext());
      }
docs: Retrieves external content via http or https.
  
  @return A MIMETypedStream
  @throws ModuleInitializationException
  @throws GeneralException
  @throws RangeNotSatisfiableException