private void editMethod(UserRequest ureq, AccessInfo infos) {
    OfferAccess link = infos.getLink();

    removeAsListenerAndDispose(editMethodCtrl);
    AccessMethodHandler handler = acModule.getAccessMethodHandler(link.getMethod().getType());
    if (handler != null) {
      editMethodCtrl = handler.editConfigurationController(ureq, getWindowControl(), link);
    }

    if (editMethodCtrl != null) {
      listenTo(editMethodCtrl);

      String title = handler.getMethodName(getLocale());
      cmc =
          new CloseableModalController(
              getWindowControl(),
              translate("close"),
              editMethodCtrl.getInitialComponent(),
              true,
              title);
      cmc.activate();
      listenTo(cmc);
    }
  }