com.stc.connector.hl7.schematron.ValidationOutput output = validator.validate( dataSrc );
dataSrc is a Source of the payload. The payload can be an entire V3 XML document or a CDA document.
The ValidationOutput object contains the resultant XML document as well as a method is Valid() which returns values when the validation has passed or failed.