if (data != null) {
for (final Object value : data.values()) {
if (value instanceof JointData) {
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 {