final JointData jointData = (JointData) value;
if (jointData.getJointIndex() >= 0) {
jointData.applyTo(applyToPose.getLocalJointTransforms()[jointData.getJointIndex()]);
}
} else if (value instanceof TriggerData) {
final TriggerData trigger = (TriggerData) value;
if (trigger.isArmed()) {
try {
// pull callback(s) for the current trigger key, if exists, and call.
for (final String curTrig : trigger.getCurrentTriggers()) {
for (final TriggerCallback cb : _triggerCallbacks.get(curTrig)) {
cb.doTrigger(applyToPose, manager);
}
}
} finally {
trigger.setArmed(false);
}
}
}
}