private static Map<FbxId, FbxElement> createUidToObjectMap(FbxFile file) {
        Map<FbxId, FbxElement> uidToObjectMap = new HashMap<>();
        for (FbxElement rootElement : file.rootElements) {
            if (rootElement.id.equals("Objects")) {
                for (FbxElement fbxObj : rootElement.children) {
                    FbxId uid = FbxId.getObjectId(fbxObj);
                    if (uid != null) {
                        uidToObjectMap.put(uid, fbxObj);
                    } else {
                        logger.log(Level.WARNING, "Cannot determine ID for object: {0}", fbxObj);
                    }
                }
            }
        }
        return uidToObjectMap;
    }
Creates a map between object UIDs and the objects themselves.

@param file The file to create the mappings for.
@return The UID to object map.
jme3-plugins/src/fbx/java/com/jme3/scene/plugins/fbx/file/FbxDump.java