ServiceUtils.executeService(getUserView(request), "DeleteAnnouncementBoard", new Object[] { this.getRequestedAnnouncementBoard(request) });
try { ServiceUtils.executeService(getUserView(request), "DeleteAnnouncementBoard", new Object[] { this.getRequestedAnnouncementBoard(request) }); } catch (DomainException e) { addActionMessage(request, e.getKey()); return prepareCreateBoard(mapping, actionForm, request, response); }
    public ActionForward deleteAnnouncementBoard(ActionMapping mapping, ActionForm actionForm,            HttpServletRequest request, HttpServletResponse response) throws Exception {        if (!getLoggedPerson(request).hasRole(RoleType.MANAGER)) {            ActionMessages actionMessages = new ActionMessages();            actionMessages.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage(                    "error.not.allowed.to.delete.board"));            saveErrors(request, actionMessages);        } else {            ServiceUtils.executeService(getUserView(request), "DeleteAnnouncementBoard",                    new Object[] { this.getRequestedAnnouncementBoard(request) });            if (request.getParameter("returnAction") != null                    && !request.getParameter("returnAction").equals("")                    && !request.getParameter("returnAction").equals("null")) {                ActionForward destination = new ActionForward();                String returnUrl = request.getParameter("returnAction");                if (request.getParameter("returnMethod") != null                        && !request.getParameter("returnMethod").equals("")                        && !request.getParameter("returnMethod").equals("null")) {                    returnUrl += "?method=" + request.getParameter("returnMethod");                }                destination.setPath(returnUrl);                return destination;            }        }                return this.prepareCreateBoard(mapping, actionForm, request, response);    }