docs: public void showAddNodeDialog() {
          jcrService().getPrimaryTypes(node.getRepository(),
                  node.getWorkspace(),
                  null,
                  false, new AsyncCallback<String[]>() {
              @Override
              public void onFailure(Throwable caught) {
                  SC.say(caught.getMessage());
              }
  
              @Override
              public void onSuccess(String[] result) {
                  addNodeDialog.setPrimaryTypes(result);
                  addNodeDialog.showModal();
              }
          });
      }