@Override
    public void write(JmeExporter ex) throws IOException {
        super.write(ex);
        OutputCapsule oc = ex.getCapsule(this);
        oc.writeStringSavableMap(animClipMap, "animClipMap", new HashMap<String, AnimClip>());
        oc.write(globalSpeed, "globalSpeed", 1f);
        oc.writeStringSavableMap(layers, "layers", new HashMap<String, AnimLayer>());
    }
Serialize this composer to the specified exporter, for example when
saving to a J3O file.

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