@Override
    public void write(JmeExporter ex) throws IOException {
        OutputCapsule oc = ex.getCapsule(this);
        oc.write(name, "name", null);
        oc.write(tracks, "tracks", null);

    }
Serialize this clip to the specified exporter, for example when saving to
a J3O file.

@param ex the exporter to write to (not null)
@throws IOException from the exporter
jme3-core/src/main/java/com/jme3/anim/AnimClip.java