public final boolean recycle(T o, Handle handle) {
        @SuppressWarnings("unchecked")
        Stack<T> stack = (Stack<T>) handle;
        if (stack.parent != this) {
            return false;
        }

        if (Thread.currentThread() != stack.thread) {
            return false;
        }

        stack.push(o);
        return true;
    }
Light-weight object pool based on a thread-local stack.

@param <T> the type of the pooled object
lts-core/src/main/java/com/github/ltsopensource/core/commons/utils/Recycler.java