Message message = new Message("groups.message.group-deleted", displayExtn);    Stem parent = group.getParentStem();   try{ group.delete(); setBrowseNode(parent.getUuid(),session); }catch(GroupDeleteException e){ message = new Message("groups.message.group-fail-delete", displayExtn, true);
message = new Message("groups.message.group-deleted", displayExtn);    Stem parent = group.getParentStem();   try{ if(group.hasComposite()) group.deleteCompositeMember(); group.delete(); setBrowseNode(parent.getUuid(),session); success=true; }catch(GroupDeleteException e){ message = new Message("groups.message.group-fail-delete", displayExtn, true); }
	public ActionForward grouperExecute(ActionMapping mapping, ActionForm form,			HttpServletRequest request, HttpServletResponse response,			HttpSession session, GrouperSession grouperSession)			throws Exception {		//Get the id of the group to remove		String groupId = request.getParameter("groupId");						//Instantiate the group		Group group = GrouperHelper.groupLoadById(grouperSession,				groupId);				String displayExtn = group.getDisplayExtension();						//Set up message to display to user		Message message = new Message("groups.message.group-deleted",				displayExtn);				//Obtain the stem for the group we are removing				Stem parent = group.getParentStem();		//Try and remove the group				try{			group.delete();			setBrowseNode(parent.getUuid(),session);		}catch(GroupDeleteException e){			message = new Message("groups.message.group-fail-delete",					displayExtn, true);		}				request.setAttribute("message", message);		 		//Do redirect else advanced search link breaks		//return mapping.findForward(getBrowseMode(session) + "Groups");		ActionForward forward = new ActionForward("/browseStems" + getBrowseMode(session) + ".do",true);		return forward;	}