protected void addCitrusSchema ( String schemaName ) throws IOException , SAXException , ParserConfigurationException { Resource resource = new PathMatchingResourcePatternResolver ( ) . getResource ( "classpath:com/consol/citrus/schema/" + schemaName + ".xsd" ) ; if ( resource . exists ( ) ) { addXsdSchema ( resource ) ; } }
Adds Citrus message schema to repository if available on classpath .