@Override
  public String execute() throws Exception {
    if (id != null) {
      lockException = dataSetService.getLockException(id);

      if (lockException == null) {
        return INPUT;
      }

      selectionTreeManager.setSelectedOrganisationUnit(lockException.getOrganisationUnit());
      dataSets = getDataSetsForCurrentUser(lockException.getOrganisationUnit().getId());
      periods = getPeriodsForDataSet(lockException.getDataSet().getId());

      for (Period period : periods) {
        period.setName(format.formatPeriod(period));
      }
    }

    return SUCCESS;
  }