@Override
    public void setJointLimits(String boneName, RangeOfMotion rom) {
        if (!hasBoneLink(boneName)) {
            String msg = "No linked bone named " + boneName;
            throw new IllegalArgumentException(msg);
        }

        super.setJointLimits(boneName, rom);

        if (getSpatial() != null) {
            BoneLink boneLink = findBoneLink(boneName);
            SixDofJoint joint = (SixDofJoint) boneLink.getJoint();
            rom.setupJoint(joint);
        }
    }
Alter the range of motion of the joint connecting the named BoneLink to
its parent in the link hierarchy.

@param boneName the name of the BoneLink (not null, not empty)
@param rom the desired range of motion (not null)
jme3-jbullet/src/main/java/com/jme3/bullet/animation/DacLinks.java