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 ; }
Create a new context by deep copy of an existant one .