docs: protected void onOk() {
  
          final String title = m_linkTitle.getFormValueAsString();
          final String link = m_linkContent.getFormValueAsString();
          m_linkTitle.setEnabled(false);
          m_linkContent.setEnabled(false);
          m_okButton.setEnabled(false);
          if (m_isCreateNew) {
              final String fileName = m_fileName.getFormValueAsString();
              CmsRpcAction<Void> action = new CmsRpcAction<Void>() {
  
                  @Override
                  public void execute() {
  
                      CmsCoreProvider.getVfsService().createNewExternalLink(
                          title,
                          link,
                          fileName,
                          m_parentFolderPath,
                          this);
                  }
  
                  @Override
                  protected void onResponse(Void result) {
  
                      hide();
                  }
              };
              action.execute();
          } else {
              CmsRpcAction<Void> action = new CmsRpcAction<Void>() {
  
                  @Override
                  public void execute() {
  
                      CmsCoreProvider.getVfsService().saveExternalLink(
                          m_structureId,
                          title,
                          link,
                          CmsResource.getName(m_linkInfo.getSitePath()),
                          this);
                  }
  
                  @Override
                  protected void onResponse(Void result) {
  
                      if (m_contextMenuHandler != null) {
                          m_contextMenuHandler.refreshResource(m_structureId);
                      }
                      hide();
                  }
              };
              action.execute();
          }
      }