public void registerObject(NativeObject obj) {
        if (obj.getId() <= 0) {
            throw new IllegalArgumentException("object id must be greater than zero");
        }

        NativeObjectRef ref = new NativeObjectRef(refQueue, obj);
        refMap.put(obj.getUniqueId(), ref);
        
        obj.setNativeObjectManager(this);

        if (logger.isLoggable(Level.FINEST)) {
            logger.log(Level.FINEST, "Registered: {0}", new String[]{obj.toString()});
        }
    }
(Internal use only) Register a <code>NativeObject</code> with the manager.

@param obj the object to register (not null)
jme3-core/src/main/java/com/jme3/util/NativeObjectManager.java