@Override
    public void read(JmeImporter im) throws IOException {
        super.read(im);
        InputCapsule ic = im.getCapsule(this);
        controlDir = ic.readEnum(CONTROL_DIR_NAME, ControlDirection.class, ControlDirection.SpatialToLight);
        light = (Light) ic.readSavable(LIGHT_NAME, null);
    }
Sets the spatial to adopt the light's world transformations.

@author Markil 3
jme3-core/src/main/java/com/jme3/scene/control/LightControl.java