@Override
        public boolean validateObject(final PooledObject<SQLStatisticAggregateMap> pooledObject) {
            final SQLStatisticsConfig sqlStatisticsConfig = configProvider.get();
            if (pooledObject.getObject().size() >= sqlStatisticsConfig.getInMemPooledAggregatorSizeThreshold()) {
                return false;
            }
            final long pooledObjectAgeMs = System.currentTimeMillis() - pooledObject.getCreateTime();
            if (pooledObjectAgeMs > sqlStatisticsConfig.getInMemPooledAggregatorAgeThreshold().toMillis()) {
                return false;
            }

            return super.validateObject(pooledObject);
        }
Should we give this item back to the pool
stroom-statistics/stroom-statistics-impl-sql/src/main/java/stroom/statistics/impl/sql/SQLStatisticEventStore.java