@Override
    public ByteBuffer allocate(int size) {
        return ByteBuffer.allocateDirect(size);
    }
This function explicitly calls the Cleaner method of a direct buffer.

@param toBeDestroyed
           The direct buffer that will be "cleaned". Utilizes reflection.
jme3-core/src/main/java/com/jme3/util/ReflectionAllocator.java