code: public RemoteDocument loadDocument(String url) throws JsonLdError {
          if (m_injectedDocs.containsKey(url)) {
              try {
                  return new RemoteDocument(url, m_injectedDocs.get(url));
              } catch (final Exception e) {
                  throw new JsonLdError(JsonLdError.Error.LOADING_INJECTED_CONTEXT_FAILED, url, e);
              }
          } else {
              final String disallowRemote = System
                      .getProperty(DocumentLoader.DISALLOW_REMOTE_CONTEXT_LOADING);
              if ("true".equalsIgnoreCase(disallowRemote)) {
                  throw new JsonLdError(JsonLdError.Error.LOADING_REMOTE_CONTEXT_FAILED,
                          "Remote context loading has been disallowed (url was " + url + ")");
              }
  
              try {
                  return new RemoteDocument(url, JsonUtils.fromURL(new URL(url), getHttpClient()));
              } catch (final Exception e) {
                  throw new JsonLdError(JsonLdError.Error.LOADING_REMOTE_CONTEXT_FAILED, url, e);
              }
          }
      }
docs: Loads the URL if possible, returning it as a RemoteDocument.
  
  @param url
  The URL to load
  @return The resolved URL as a RemoteDocument
  @throws JsonLdError
  If there are errors loading or remote context loading has
  been disallowed.