this.datasource=datasource;
DerbyMonitoringDbDialect derbyMonitoringDbDialect = new DerbyMonitoringDbDialect(new StandardJavaSerializer(), new DummyPostProcessor(),new BatchingAuditTrail());
this.monitoringDbDialect = derbyMonitoringDbDialect;
DerbyDbDialect databaseDialect = new DerbyDbDialect();
databaseDialect.setDataSource(datasource);
databaseDialect.startup();
this.databaseDialect = databaseDialect;
Connection connection = null;
try {
connection = datasource.getConnection();