private void analyzeResultingTlsContextAndWriteFile(TlsContext tlsContext,String folder,String fieldName,String workflowName,long phase) throws JAXBException, IOException {
  if (TlsContextAnalyzer.containsFullWorkflowWithMissingMessage(tlsContext) || TlsContextAnalyzer.containsServerFinishedWithModifiedHandshake(tlsContext) || TlsContextAnalyzer.containsFullWorkflowWithModifiedMessage(tlsContext)) {
    String fileNameBasic=createFileName(folder,phase,tlsContext,fieldName);
    FileOutputStream fos=new FileOutputStream(fileNameBasic + workflowName + ".xml");
    WorkflowTraceSerializer.write(fos,tlsContext.getWorkflowTrace());
  }
}

private void analyzeResultingTlsContextAndWriteFile ( TlsContext tlsContext , String folder , String fieldName , String workflowName , long phase ) throws JAXBException , IOException { if ( TlsContextAnalyzer . containsFullWorkflowWithMissingMessage ( tlsContext ) || TlsContextAnalyzer . containsServerFinishedWithModifiedHandshake ( tlsContext ) || TlsContextAnalyzer . containsFullWorkflowWithModifiedMessage ( tlsContext ) ) { String fileNameBasic = createFileName ( folder , phase , tlsContext , fieldName ) ; FileOutputStream fos = new FileOutputStream ( fileNameBasic + workflowName + ".xml" ) ; WorkflowTraceSerializer . write ( fos , tlsContext . getWorkflowTrace ( ) ) ; } }
analyzes the resulting workflow . it stores the workflow if the workflow contains a missing message , or if it contains an unexpected new message , or if it contains a modified message .
