public void setId(int id){
        if (this.id != INVALID_ID) {
            throw new IllegalStateException("ID has already been set for this GL object.");
        }
        this.id = id;
    }
Sets the ID of the NativeObject. This method is used in Renderer and must
not be called by the user.

@param id The ID to set
jme3-core/src/main/java/com/jme3/util/NativeObject.java