@Override
    public void write(JmeExporter ex) throws IOException {
        OutputCapsule output = ex.getCapsule(this);
        output.write(rootJoints, "rootJoints", null);
        output.write(jointList, "jointList", null);
        output.write(modelTransformClass.getCanonicalName(), "modelTransformClass", MatrixJointModelTransform.class.getCanonicalName());
    }
Serialize this Armature 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/Armature.java