Functionality.deleteFunctionality(functionality);
deleteFunctionality(functionality);
    public ActionForward delete(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request, HttpServletResponse response) throws Exception {        Functionality functionality = getFunctionality(request);            if (functionality == null) {            return viewTopLevel(mapping, actionForm, request, response);        }                if (request.getParameter("confirm") != null) {            Module parent = functionality.getModule();            Functionality.deleteFunctionality(functionality);                        return viewModule(parent, mapping, actionForm, request, response);        }        else {            if (functionality instanceof Module) {                return viewModule((Module) functionality, mapping, actionForm, request, response);                }            else {                return forwardTo(mapping.findForward("view"), request, functionality);            }        }    }