}
});
Document document = documentBuilder.parse(resources[i].getInputStream());
config.addDocument(document);
} catch (SAXException e) {
throw new DatabaseException("Error reading document " + resources[i].getURL(), e);
}
}
}
}
}
} catch (Exception e) {
if (e instanceof DatabaseException) {
throw (DatabaseException) e;
} else {
throw new DatabaseException(e);
}
}
// Add properties
ManagedProperties hibernateProperties = (ManagedProperties) properties.getPropertyValue("hibernateProperties").getValue();