anchor.diff:  
   == Prerequisites
   
  +=== Headless usage (Massif in non-eclipse environment)
  +If you wish to use massif in non-eclipse environment, you have to run the following
  +setup found in 'hu.bme.mit.massif.simulink.cli' package:
  +[source, java]
  +----
  +"CLIInitializationUtil.setupEnvironment()"
  +----
  +
  +Also, the default VIATRA backends must be provided:
  +[source, java]
  +----
  +import org.eclipse.viatra.query.runtime.api.ViatraQueryEngineOptions;
  +import org.eclipse.viatra.query.runtime.localsearch.matcher.integration.LocalSearchEMFBackendFactory;
  +import org.eclipse.viatra.query.runtime.rete.matcher.ReteBackendFactory;
  +----
  +
  +[source, java]
  +----
  +ViatraQueryEngineOptions.setSystemDefaultBackends(ReteBackendFactory.INSTANCE, ReteBackendFactory.INSTANCE, LocalSearchEMFBackendFactory.INSTANCE);
  +----
  +
  +
  +=== General prerequisites
   In order to successfully use the Importer (`ImporterExample` class) or the Exporter (`ExporterExample` class),
   some other components has to be created first in both classes, namely:
   
  
positive.code: In the example we use helper method to do this work, but the main logic can be written in one line:
  [source, java]
  ----
  ICommandEvaluator commandEvaluator = new CommandEvaluatorImpl(new MatlabClient(hostAddress, hostPort, serviceName)); 
  ----
  This provides low level command evaluation,
  like sending commands to Matlab in form of strings and receiving the results in array of objects.
  
negative.code: The extension of the model to save can be `slx` or `mdl`.
  (The default by MATLAB is `slx`).
  Please note, that the save path and save name is already set in the EMF representation,
  so it can be obtained by the `loadedModel.getSimulinkRef().getFQN()` call.
  
  == Caveats
  
  If a model is already loaded by Simulink, you can't re-import or re-export them.
  Use "bdclose('all')" simulink command to close all opened systems.
  
  It can be run via Massif programmatically:
  [source, java]
  ----
  ICommandEvaluator commandEvaluator = ... // The commandEvaluator of your choice
  MatlabCommandFactory commandFactory = new MatlabCommandFactory(commandEvaluator);
  MatlabCommand closeAllCommand = commandFactory.customCommand("bdclose", 0);
  closeAllCommand.addParam("all");
  closeAllCommand.execute();
  ----
  