if (configurationInstance.get().isDefaultDataSourceDefined())
{
return; // if defined globally the only way to alter it is on test level using @DataSource annotation
}
final PersistenceDescriptorArchiveExtractor persistenceDescriptorArchiveExtractor = new PersistenceDescriptorArchiveExtractor();
final InputStream persistenceXmlAsStream = persistenceDescriptorArchiveExtractor.getAsStream(applicationArchive);
if (persistenceXmlAsStream != null)
{
final PersistenceDescriptorParser parser = new PersistenceDescriptorParser();
try
{