@Override
    public void write(JmeExporter ex) throws IOException {
        OutputCapsule out = ex.getCapsule(this);
        out.write(name, "name", null);
        out.write(length, "length", 0f);
        out.write(tracks.getArray(), "tracks", null);
    }
@param spat the Spatial to clone for
@return a new instance
jme3-core/src/main/java/com/jme3/animation/Animation.java