public static AnalyzerResponse containsAlertAfterModifiedMessage(TlsContext tlsContext){
  int position=getModifiedMessagePosition(tlsContext);
  if (position == -1) {
    return AnalyzerResponse.NO_MODIFICATION;
  }
 else {
    ProtocolMessage pm=getNextProtocolMessageFromPeer(tlsContext,position);
    if (pm != null && pm.getProtocolMessageType() == ProtocolMessageType.ALERT) {
      return AnalyzerResponse.ALERT;
    }
 else {
      return AnalyzerResponse.NO_ALERT;
    }
  }
}

public static AnalyzerResponse containsAlertAfterModifiedMessage ( TlsContext tlsContext ) { int position = getModifiedMessagePosition ( tlsContext ) ; if ( position == - 1 ) { return AnalyzerResponse . NO_MODIFICATION ; } else { ProtocolMessage pm = getNextProtocolMessageFromPeer ( tlsContext , position ) ; if ( pm != null && pm . getProtocolMessageType ( ) == ProtocolMessageType . ALERT ) { return AnalyzerResponse . ALERT ; } else { return AnalyzerResponse . NO_ALERT ; } } }
returns true in case the workflow contains a modified message and the message , which is then followed by an alert issued by our peer
