}
@Override
protected TranslatorMetaDataGroup parse(VFSDeploymentUnit unit, VirtualFile file, TranslatorMetaDataGroup root) throws Exception {
JAXBContext context = JAXBContext.newInstance(new Class[] {TranslatorMetaDataGroup.class});
Unmarshaller um = context.createUnmarshaller();
InputStream is = file.openStream();
try{
InputSource input = new InputSource(is);
input.setSystemId(file.toURI().toString());
XMLReader reader = XMLReaderFactory.createXMLReader();
reader.setEntityResolver(new JBossEntityResolver());
SAXSource source = new SAXSource(reader, input);
JAXBElement<TranslatorMetaDataGroup> elem = um.unmarshal(source, TranslatorMetaDataGroup.class);
TranslatorMetaDataGroup deployment = elem.getValue();
return deployment;
}
finally {
if (is != null)