@Override
    public void write(JmeExporter exporter) throws IOException {
        super.write(exporter);
        OutputCapsule capsule = exporter.getCapsule(this);

        capsule.write(actionName, "actionName", "");
        capsule.write(cinematic, "cinematic", null);
        capsule.write(composer, "composer", null);
        capsule.write(layerName, "layerName", AnimComposer.DEFAULT_LAYER);
    }
Serialize this event to the specified exporter, for example when saving
to a J3O file.

@param exporter (not null)
@throws IOException from the exporter
jme3-core/src/main/java/com/jme3/cinematic/events/AnimEvent.java