@Override
    public void read(JmeImporter im) throws IOException {
        super.read(im);
        InputCapsule ic = im.getCapsule(this);
        enabled = ic.readBoolean("enabled", true);
        spatial = (Spatial) ic.readSavable("spatial", null);
        envMapSize = ic.readInt("size", 256);
        requiredSavableResults = ic.readBoolean("requiredSavableResults", false);
        bakeNeeded = ic.readBoolean("bakeNeeded", true);
        assetManager = im.getAssetManager();
        frustumFar = ic.readFloat("frustumFar", 1000f);
        frustumNear = ic.readFloat("frustumNear", 0.001f);
        uuid = ic.readString("envProbeControlUUID", "none");
    }
Sets the asset manager used to load the shaders needed for the baking.

@param assetManager the asset manager
jme3-core/src/main/java/com/jme3/environment/EnvironmentProbeControl.java