List<ConnectionDecorator> decorators = new ArrayList<ConnectionDecorator>();
decorators.addAll(Arrays.asList(conf.
getConnectionDecoratorInstances()));
// add jdbc events decorator
JDBCEventConnectionDecorator ecd =
new JDBCEventConnectionDecorator();
Configurations.configureInstance(ecd, conf, opts);
JDBCListener[] listeners = conf.getJDBCListenerInstances();
for (int i = 0; i < listeners.length; i++)
ecd.addListener(listeners[i]);
decorators.add(ecd);
// ask the DriverDataSource to provide any additional decorators
if (ds instanceof DriverDataSource) {
List<ConnectionDecorator> decs = ((DriverDataSource) ds).