schemaFactory.setProperty("http://apache.org/xml/properties/security-manager", null); // Need to turn this thing off, otherwise it throws stupid errors.
} catch (SAXException e) {
// Ignore...
}
EclipseFragmentXMLValidator validator = new EclipseFragmentXMLValidator(schemaFactory);
validator.validate(new StringSource(xmlResult.getResult()));
} catch (Exception e) {
throw new IllegalStateException("Error processing EDIFACT stream for '" + urn + "'.", e);
} finally {
Thread.currentThread().setContextClassLoader(origTCCL);
}