public void setId(int id) {
        if (vertexArrayID != DEFAULT_VERTEX_ARRAY_ID) {
            throw new IllegalStateException("ID has already been set.");
        }

        vertexArrayID = id;
    }
Sets the mesh's VAO ID. Internal use only.

@param id the array ID
jme3-core/src/main/java/com/jme3/scene/Mesh.java