Below is a sample call to the getDefaultValidator method.
com.stc.connector.hl7.schematron.SchematronValidator validator = factory.getDefaultValidator( domSource );
In the above example, domSource is the DOMSource object of the schematron XML.