campaignDetailForm = (CampaignDetailForm) getForm(CAMPAIGN_DETAIL_FORM);
if (validateBeanProperties(campaignDetailForm)) {
try {
campaignVO = new CampaignVO();
CustomerMapperFactory.getCampaignMapper().mapToObj(campaignDetailForm, campaignVO);
UserVO loggedInUserVO = (UserVO)getSession().getAttribute(Constants.LOGGED_IN_USER);
if (campaignVO.getCampaignId() == null) {
campaignVO.setCreatedOn(new Date());
campaignVO.setCreatedBy(loggedInUserVO.getUserIdent());
}
else {
campaignVO.setModifiedOn(new Date());
campaignVO.setModifiedBy(loggedInUserVO.getUserIdent());
}
campaignVO = dataServiceLocator.getCampaignService().saveCampaign(campaignVO);
CustomerMapperFactory.getCampaignMapper().mapToBean(campaignVO, campaignDetailForm);
} catch (CampaignServiceException ex) {
logger.error("DAO exception occured, cause: ", ex);