private int findNext(List<KeyFrame> keyFrames, Type type, int fromIndex) {
        for (int i = fromIndex + 1; i < keyFrames.size(); i++) {
            KeyFrame kf = keyFrames.get(i);
            switch (type) {
                case Translation:
                    if (kf.translation != null) {
                        return i;
                    }
                    break;
                case Rotation:
                    if (kf.rotation != null) {
                        return i;
                    }
                    break;
                case Scale:
                    if (kf.scale != null) {
                        return i;
                    }
                    break;
            }
        }
        return -1;
    }
Verify that the
{@link #times}, {@link #translations}, {@link #rotations}, and
{@link #scales} vectors all have the same length, if present.

@throws AssetLoadException if the lengths differ
jme3-plugins/src/gltf/java/com/jme3/scene/plugins/gltf/TrackData.java