final List<ExecutionPeriod> executionPeriods = (List<ExecutionPeriod>)
final Collection<ExecutionPeriod> executionPeriods = (Collection<ExecutionPeriod>)
	public ActionForward prepare(ActionMapping mapping, ActionForm actionForm,            HttpServletRequest request, HttpServletResponse response) throws Exception {		final IUserView userView = SessionUtils.getUserView(request);        final DynaActionForm dynaActionForm = (DynaActionForm) actionForm;        final String executionPeriodIDString = dynaActionForm.getString("executionPeriodID");        final Integer executionPeriodID = validInteger(executionPeriodIDString) ? Integer.valueOf(executionPeriodIDString) : null;        final Object[] args = new Object[] { ExecutionPeriod.class };        final List<ExecutionPeriod> executionPeriods = (List<ExecutionPeriod>)                ServiceUtils.executeService(userView, "ReadAllDomainObjects", args);        ExecutionPeriod selectedExecutionPeriod = null;        final List<LabelValueBean> executionPeriodLVBs = new ArrayList<LabelValueBean>();        for (final ExecutionPeriod executionPeriod : executionPeriods) {            final String label = executionPeriod.getName() + " " + executionPeriod.getExecutionYear().getYear();            executionPeriodLVBs.add(new LabelValueBean(label, executionPeriod.getIdInternal().toString()));            if (executionPeriodID == null && executionPeriod.getState() == PeriodState.CURRENT) {                selectedExecutionPeriod = executionPeriod;                dynaActionForm.set("executionPeriodID", selectedExecutionPeriod.getIdInternal().toString());            } else if (executionPeriodID != null && executionPeriod.getIdInternal().equals(executionPeriodID)) {                selectedExecutionPeriod = executionPeriod;            }        }        request.setAttribute("executionPeriodLVBs", executionPeriodLVBs);        if (selectedExecutionPeriod != null) {            request.setAttribute("selectedExecutionPeriod", selectedExecutionPeriod);            final Date inquiryResponseBegin = selectedExecutionPeriod.getInquiryResponseBegin();            if (inquiryResponseBegin != null) {                dynaActionForm.set("inquiryResponseBegin", DateFormatUtil.format("dd/MM/yyyy HH:mm", inquiryResponseBegin));            }            final Date inquiryResponseEnd = selectedExecutionPeriod.getInquiryResponseEnd();            if (inquiryResponseEnd != null) {                dynaActionForm.set("inquiryResponseEnd", DateFormatUtil.format("dd/MM/yyyy HH:mm", inquiryResponseEnd));            }        }				return mapping.findForward("showForm");    }