@Override
    public void write(JmeExporter ex) throws IOException {
        serialize();
        OutputCapsule out = ex.getCapsule(this);
        out.write(array, "array", null);
        out.write(index, "index", null);
    }
creates a compact Quaternion array
@param dataArray the data array
@param index  the indices array
jme3-core/src/main/java/com/jme3/animation/CompactQuaternionArray.java