try {
AbstractDAOFactory daoFactory = Controller.getDAOFactory();
FormDAO formDAO = daoFactory.getFormDAO();
try {
formDAO.create(form);
} catch (IllegalArgumentException ex) {
logger.error(ex, ex);
}
Customer customer = (Customer) request.getSession().getAttribute(AttributesManager.ATTRIBUTE_CUSTOMER);