throw new JBossXBException("Failed to get parser's XMLReader", e);
}
reader.setContentHandler(new DelegatingContentHandler());
reader.setErrorHandler(new MetaDataErrorHandler());
reader.setEntityResolver(new JBossEntityResolver());
setFeature(Unmarshaller.VALIDATION, true);
setFeature(Unmarshaller.SCHEMA_VALIDATION, true);
setFeature(Unmarshaller.SCHEMA_FULL_CHECKING, true);
setFeature(Unmarshaller.DYNAMIC_VALIDATION, true);