properties.load(propertiesStream);
createFrom(properties);
}
catch (Exception e)
{
throw new PersistenceExtensionInitializationException("Unable to load Arquillian properties in container. Missing file " + propertyFilename, e);
}
finally
{
if (propertiesStream != null)
{
try
{
propertiesStream.close();
}
catch (IOException e)
{
throw new PersistenceExtensionInitializationException("Failed to close the stream for file " + propertyFilename, e);
}
}
}
}