if (!fileManager.exists(persistenceXmlPath)) {
throw new IllegalStateException("Failed to find "
+ persistenceXmlPath);
}
final FileDetails fileDetails = fileManager
.readFile(persistenceXmlPath);
Document document = null;
try {
final InputStream is = new BufferedInputStream(new FileInputStream(
fileDetails.getFile()));
final DocumentBuilder builder = XmlUtils.getDocumentBuilder();
builder.setErrorHandler(null);
document = builder.parse(is);
}
catch (final Exception e) {