code: function doNewDocument() {
      // close old document first
      var doc = mindmapModel.getDocument();
      doCloseDocument();
  
      var presenter = new mindmaps.NewDocumentPresenter(eventBus,
          mindmapModel, new mindmaps.NewDocumentView());
      presenter.go();
    }
docs: Handles the new document command.