comment and docstring on getJointMapping method