code: public static void showDialog(final CmsUUID referenceId, final AsyncCallback<String> createModeCallback) {
  
          CmsRpcAction<CmsListInfoBean> action = new CmsRpcAction<CmsListInfoBean>() {
  
              @Override
              public void execute() {
  
                  start(0, true);
                  CmsCoreProvider.getVfsService().getPageInfo(referenceId, this);
  
              }
  
              @Override
              protected void onResponse(CmsListInfoBean result) {
  
                  stop(false);
                  Boolean isFolder = result.getIsFolder();
                  if ((isFolder != null) && isFolder.booleanValue()) {
                      createModeCallback.onSuccess(null);
                  } else {
                      (new CmsCreateModeSelectionDialog(result, createModeCallback)).center();
                  }
  
              }
          };
          action.execute();
  
      }
docs: Shows the dialog for the given collector list entry.<p>
  
  @param referenceId the structure id of the collector list entry
  @param createModeCallback the callback which should be called with the selected create mode