@Override
  protected String doExecute() throws Exception {
    cloneCompMgr.setProjectKeys(selectedProjKeys);
    if (selectedProjKeys != null) {
      savedProjKeys = Arrays.asList(cloneCompMgr.getProjectKeys());
    }
    setSaved(true);

    return getRedirect("MailRuIssueClonerConfig!default.jspa?saved=true");
  }
  /** Constructor. */
  public IssueClonerConfig(
      ApplicationProperties applicationProperties,
      CloneCompMgr cloneCompMgr,
      ProjectManager prMgr) {
    this.applicationProperties = applicationProperties;
    this.cloneCompMgr = cloneCompMgr;
    this.prMgr = prMgr;

    selectedProjKeys = cloneCompMgr.getProjectKeys();
    savedProjKeys = selectedProjKeys == null ? null : Arrays.asList(selectedProjKeys);
  }
  /** Check that Plug-In is configured for the project. */
  private boolean isApplyPlugin(Long projId) {
    String[] projKeys = cloneCompMgr.getProjectKeys();
    if (projKeys != null) {
      int inx = Arrays.binarySearch(projKeys, projId.toString());
      if (inx >= 0) {
        return true;
      } else {
        return false;
      }
    }

    return false;
  }