Just like setObjectTexutre, setObjectMaterial needs a global variant as well to prevent unnecessary work arounds and problems caused by the local nature of the command. The new global command should be JIP compatible.
The new command would be called "setObjectMaterialGlobal".