docs: public static void openEditConfirmDialog(final CmsNewResourceInfo resourceInfo) {
  
          I_CmsConfirmDialogHandler handler = new I_CmsConfirmDialogHandler() {
  
              public void onClose() {
  
                  // noop
              }
  
              public void onOk() {
  
                  String resourcePath = resourceInfo.getVfsPath();
                  String siteRoot = CmsCoreProvider.get().getSiteRoot();
                  if (resourcePath.startsWith(siteRoot)) {
                      resourcePath = resourcePath.substring(siteRoot.length());
                      // prepend slash if necessary
                      if (!resourcePath.startsWith("/")) {
                          resourcePath = "/" + resourcePath;
                      }
                  }
                  CmsSitemapController controller = CmsSitemapView.getInstance().getController();
                  controller.leaveEditor(resourcePath);
              }
          };
          String dialogTitle = Messages.get().key(Messages.GUI_EDIT_MODELPAGE_CONFIRM_TITLE_0);
          String dialogContent = Messages.get().key(Messages.GUI_EDIT_MODELPAGE_CONFIRM_CONTENT_0);
          String buttonText = Messages.get().key(Messages.GUI_EDIT_MODELPAGE_OK_0);
  
          CmsConfirmDialog dialog = new CmsConfirmDialog(dialogTitle, dialogContent);
          dialog.getOkButton().setText(buttonText);
          dialog.setHandler(handler);
          dialog.center();
      }