if (inputStream == null) {
throw new PersistenceException("File " + JDBCPersistenceHelper.PROPERTIES_FILE + " not found in classpath");
}
Properties properties = PropertiesReader.getPlainTextInstance().getProperties(inputStream);
DataSourceFactory factory = new BasicDataSourceFactory();
this.dataSource = factory.getDataSource(properties);
} catch (Exception e) {
throw new PersistenceException(e);
}
}