((PointInTime) keyframes.get(i)).look[joint] .setRotationQuaternion(new Quaternion());
pivots[joint].getRotation( ((PointInTime) keyframes.get(i)).look[joint] .getRotation());
    private void fillRots() {        for (int joint = 0; joint < numObjects; joint++) {            // 1) Find first non-null rotation of joint <code>joint</code>            int start;            for (start = 0; start < keyframes.size(); start++) {                if (((PointInTime) keyframes.get(start)).usedRot.get(joint))                        break;            }            if (start == keyframes.size()) { // if they are all null then fill                // with identity                for (int i = 0; i < keyframes.size(); i++)                    ((PointInTime) keyframes.get(i)).look[joint]                            .setRotationQuaternion(new Quaternion());                continue; // we're done so lets break            }            if (start != 0) { // if there -are- null elements at the begining,                // then fill with first non-null                ((PointInTime) keyframes.get(start)).look[joint]                        .getRotation(unSyncbeginRot);                for (int i = 0; i < start; i++)                    ((PointInTime) keyframes.get(i)).look[joint]                            .setRotationQuaternion(unSyncbeginRot);            }            int lastgood = start;            for (int i = start + 1; i < keyframes.size(); i++) {                if (((PointInTime) keyframes.get(i)).usedRot.get(joint)) {                    fillQuats(joint, lastgood, i); // fills gaps                    lastgood = i;                }            }            //            fillQuats(joint,lastgood,keyframes.size()-1); // fills tail            ((PointInTime) keyframes.get(lastgood)).look[joint]                    .getRotation(unSyncbeginRot);            for (int i = lastgood + 1; i < keyframes.size(); i++) {                ((PointInTime) keyframes.get(i)).look[joint]                        .setRotationQuaternion(unSyncbeginRot);            }        }    }