anchor.diff:  from("direct:test1")
     .unmarshal(hl7)                // uses the GenericParser returned from the HapiContext
     .validate(messageConforms())   // uses the validation rules returned from the HapiContext
  -                                    // equivalent with .validate(messageConformsTo(hapiContext))
  +                                 // equivalent with .validate(messageConformsTo(hapiContext))
      // route continues from here
   ----
   
  
positive.code: 
  === Custom Acknowledgement for MLLP
  
  In particural situations you may want to set a custom acknowledgement without using Exceptions.
  This can be achieved using the `ack` expression:
  
  [source,java]
  
negative.code:    .to("mock:test1");
  ----
  
  === HL7 Validation using the HapiContext
  
  The HAPI Context is always configured with a
  https://hapifhir.github.io/hapi-hl7v2/base/apidocs/ca/uhn/hl7v2/validation/ValidationContext.html[ValidationContext]
  (or a
  https://hapifhir.github.io/hapi-hl7v2/base/apidocs/ca/uhn/hl7v2/validation/builder/ValidationRuleBuilder.html[ValidationRuleBuilder]),
  so you can access the validation rules indirectly.
  
  Furthermore, when unmarshalling the xref:hl7-dataformat[HL7 DataFormat] forwards the configured HAPI context in
  the `CamelHL7Context` header, and the validation rules of this context can be reused:
  
  [source,java]
  ----
  