}
}
if (WSSecurityEventConstants.Operation.equals(securityEvent.getSecurityEventType())) {
operationSecurityEventOccured = true;
final OperationSecurityEvent operationSecurityEvent = (OperationSecurityEvent) securityEvent;
if (SOAP11_FAULT.equals(operationSecurityEvent.getOperation())
|| SOAP12_FAULT.equals(operationSecurityEvent.getOperation())) {
faultOccurred = true;
}
if (effectivePolicy == null) {
effectivePolicy = findPolicyBySOAPOperationName(operationPolicies, operationSecurityEvent.getOperation());
if (effectivePolicy == null) {
//no policy to the operation given
effectivePolicy = new OperationPolicy(new QName(null, "NoPolicyFoundForOperation"));
effectivePolicy.setPolicy(new Policy());
}