// Enable schema validation
URL pluginSchemaURL = XmlIndexParser.class.getClassLoader().getResource(PLUGIN_SCHEMA_PATH);
Schema pluginSchema = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI).newSchema(pluginSchemaURL);
unmarshaller.setSchema(pluginSchema);
ValidationEventCollector vec = new ValidationEventCollector();
unmarshaller.setEventHandler(vec);
BufferedReader reader = new BufferedReader(new InputStreamReader(indexStream));
JAXBElement<PackageType> packagesXml = (JAXBElement<PackageType>) unmarshaller.unmarshal(reader);
for (ValidationEvent event : vec.getEvents()) {
log.debug("URL content source index [" + indexUrl + "] message {Severity: " + event.getSeverity()
+ ", Message: " + event.getMessage() + ", Exception: " + event.getLinkedException() + "}");
}
Map<String, RemotePackageInfo> fileList = new HashMap<String, RemotePackageInfo>();