* Stop listening to a config and its elements.
*/
public void stopListening() {
if (config != null) {
Config2DModel config2DModel = (Config2DModel) config;
config2DModel.removeListener(listenerConfig2D);
Dimension2DXModel dimension2DXModel = (Dimension2DXModel) config2DModel.getDimensionX();
dimension2DXModel.removeListener(listenerDimension2DX);
for (IActuator actuator : dimension2DXModel.getActuatorsList()) {