final HeadlessMapViewController mapViewController = new HeadlessMapViewController();
controller.setMapViewManager(mapViewController);
controller.setViewController(new HeadlessUIController(controller, mapViewController, ""));
System.setSecurityManager(new FreeplaneSecurityManager());
FilterController.install();
FormatController.install(new FormatController());
final ScannerController scannerController = new ScannerController();
ScannerController.install(scannerController);
scannerController.addParsersForStandardFormats();
ModelessAttributeController.install();
TextController.install();