class MonitoredCTSConnectionFactory implements ConnectionFactory<C> {

    public C create() throws DataLayerException {
        boolean success = false;
        try {
            C response = connectionFactory.create();
            success = true;
            return response;
        } finally {
            monitorStore.addConnection(success);
        }
    }

    public  MonitoredCTSConnectionFactory(ConnectionFactory<C> connectionFactory,
                                         CTSConnectionMonitoringStore monitorStore);

}