public void parseComposedXml() throws ParserConfigurationException, SAXException, IOException {
InputStream inPlan = getClass().getClassLoader().getResourceAsStream("plans/plan_with_pap.xml");
SAXParser parser = validatingParserFactory.getValidatingParser();
parser.setProperty(ValidatingParserFactory.JAXP_SCHEMA_SOURCE, PlanXMLConstants.PLATO_SCHEMA_URI);
SchemaResolver schemaResolver = new SchemaResolver()
.addSchemaLocation(PlanXMLConstants.PLATO_SCHEMA_URI, PlanXMLConstants.PLATO_SCHEMA_LOCATION)
.addSchemaLocation(PlanXMLConstants.PAP_SCHEMA_URI, PlanXMLConstants.PAP_SCHEMA_LOCATION)
.addSchemaLocation(PlanXMLConstants.TAVERNA_SCHEMA_URI, PlanXMLConstants.TAVERNA_SCHEMA_LOCATION);
parser.parse(inPlan, new StrictDefaultHandler(schemaResolver));