it may be good enough as-is, but i believe xmodule_runtime doesn't exist in the workbench (not totally sure about studio either).  Was hoping we can ultimately find a better permanent interface to get this value.