private ExecutionPeriod findExecutionPeriod(final List<ExecutionPeriod> executionPeriods, final Integer executionPeriodID) {
private ExecutionPeriod findExecutionPeriod(final Collection<ExecutionPeriod> executionPeriods, final Integer executionPeriodID) {
    private ExecutionPeriod findExecutionPeriod(final List<ExecutionPeriod> executionPeriods, final Integer executionPeriodID) {        for (final ExecutionPeriod executionPeriod : executionPeriods) {            if (executionPeriodID == null && executionPeriod.getState().equals(PeriodState.CURRENT)) {                return executionPeriod;            }            if (executionPeriodID != null && executionPeriod.getIdInternal().equals(executionPeriodID)) {                return executionPeriod;            }        }        return null;    }