public static IPool.Controller fixedController(final int maxObjectsPerKey, final int maxTotalObjects) {
        return new IPool.Controller() {
            public boolean shouldIncrement(Object key, int objectsForKey, int totalObjects) {
                return (objectsForKey < maxObjectsPerKey) && (totalObjects < maxTotalObjects);
            }

            public Map adjustment(Map stats) {
                return new HashMap();
            }
        };
    }