public Context duplicate ( ) { Context newContext = new Context ( session , getIndex ( ) ) ; newContext . description = this . description ; newContext . name = this . name ; newContext . includeInRegexs = new ArrayList <> ( this . includeInRegexs ) ; newContext . includeInPatterns = new ArrayList <> ( this . includeInPatterns ) ; newContext . excludeFromRegexs = new ArrayList <> ( this . excludeFromRegexs ) ; newContext . excludeFromPatterns = new ArrayList <> ( this . excludeFromPatterns ) ; newContext . inScope = this . inScope ; newContext . techSet = new TechSet ( this . techSet ) ; newContext . authenticationMethod = this . authenticationMethod . clone ( ) ; newContext . sessionManagementMethod = this . sessionManagementMethod . clone ( ) ; newContext . urlParamParser = this . urlParamParser . clone ( ) ; newContext . postParamParser = this . postParamParser . clone ( ) ; newContext . authorizationDetectionMethod = this . authorizationDetectionMethod . clone ( ) ; newContext . dataDrivenNodes = this . getDataDrivenNodes ( ) ; return newContext ; }
Creates a copy of the Context . The copy is deep with the exception of the TechSet .