public void resetObjects(){
        for (NativeObjectRef ref : refMap.values()) {
            // Must use the real object here, for this to be effective.
            NativeObject realObj = ref.realObj.get();
            if (realObj == null) {
                continue;
            }
            
            realObj.resetObject();
            logger.log(Level.FINEST, "Reset: {0}", realObj);
        }
        refMap.clear();
        refQueue = new ReferenceQueue<Object>();
    }
(Internal use only) Resets all {@link NativeObject}s.
This is typically called when the context is restarted.
jme3-core/src/main/java/com/jme3/util/NativeObjectManager.java