protected List<SecondCycleCandidacyProcess> getCandidacyProcesses(
     final ExecutionInterval executionInterval) {
   final List<SecondCycleCandidacyProcess> result = new ArrayList<SecondCycleCandidacyProcess>();
   for (final SecondCycleCandidacyPeriod period :
       executionInterval.getSecondCycleCandidacyPeriods()) {
     result.add(period.getSecondCycleCandidacyProcess());
   }
   return result;
 }
  @Override
  protected SecondCycleCandidacyProcess getCandidacyProcess(
      final HttpServletRequest request, final ExecutionInterval executionInterval) {

    final String selectedProcessId = getStringFromRequest(request, "selectedProcessId");
    if (selectedProcessId != null) {
      for (final SecondCycleCandidacyPeriod candidacyPeriod :
          executionInterval.getSecondCycleCandidacyPeriods()) {
        if (candidacyPeriod
            .getSecondCycleCandidacyProcess()
            .getExternalId()
            .equals(selectedProcessId)) {
          return candidacyPeriod.getSecondCycleCandidacyProcess();
        }
      }
    }
    return null;
  }