dataServiceLocator.getActivityService().searchActivities(activityCriteria);
if (activityList.size() == 0) {
MessageUtils.addErrorMessage("error.dataSource");
} else if (activityList.size() == 1) {
activityVO = (ActivityVO) activityList.get(0);
activityDetailForm = new ActivityDetailForm();
CustomerMapperFactory.getActivityMapper().mapToBean(activityVO, activityDetailForm);
setForm(ACTIVITY_DETAIL_FORM, activityDetailForm);
} else {
activityListForm = (ActivityListForm) getForm(ACTIVITY_LIST_FORM);
activityListForm.setActivityList(activityList);