@Override
    public void write(JmeExporter ex) throws IOException {
        OutputCapsule oc = ex.getCapsule(this);
        oc.write(enabled, "enabled", true);
        oc.write(spatial, "spatial", null);
    }
To be implemented in subclass.

@param rm the RenderManager rendering the controlled Spatial (not null)
@param vp the ViewPort being rendered (not null)
jme3-core/src/main/java/com/jme3/scene/control/AbstractControl.java