@Override
        public void run() {
            try {
                while (true) {
                    Reference<? extends Buffer> toclean = BufferUtils.removeCollected.remove();
                    BufferUtils.trackedBuffers.remove(toclean);
                }

            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
Test whether the specified buffer is direct.

@param buf the buffer to test (not null, unaffected)
@return true if direct, otherwise false
jme3-core/src/main/java/com/jme3/util/BufferUtils.java