code: public static XIncludeContext newContext(final XIncludeContext contextToCopy)
      {
          final XIncludeContext newContext = new XIncludeContext(contextToCopy.configuration);
          newContext.currentBaseURI = contextToCopy.currentBaseURI;
          newContext.basesURIDeque.addAll(contextToCopy.basesURIDeque);
          newContext.language = contextToCopy.language;
          newContext.xincludeDeque.addAll(contextToCopy.xincludeDeque);
          newContext.docType = DocType.copy(contextToCopy.docType);
          return newContext;
      }
docs: Create a new context by deep copy of an existant one.
  
  @param contextToCopy the context to copy
  @return the XIncludeContext