private ActionForward deleteProcedureStudyGroup(
     ActionMapping mapping,
     ActionForm form,
     HttpServletRequest request,
     HttpServletResponse response,
     String speciesAndGroups,
     boolean procedureGroupedBySpecies)
     throws Exception {
   IacucProtocolForm protocolForm = (IacucProtocolForm) form;
   IacucProtocolStudyGroupBean selectedIacucProtocolStudyGroupBean =
       getSelectedProcedureBean(request, protocolForm.getIacucProtocolDocument());
   String procedureCategory =
       selectedIacucProtocolStudyGroupBean.getIacucProcedureCategory().getProcedureCategory();
   String procedure =
       selectedIacucProtocolStudyGroupBean.getIacucProcedure().getProcedureDescription();
   String confirmDeleteKey =
       procedureGroupedBySpecies
           ? CONFIRM_DELETE_PROCEDURE_SPECIES_STUDY_GROUP_KEY
           : CONFIRM_DELETE_PROCEDURE_STUDY_GROUP_KEY;
   return confirm(
       buildParameterizedConfirmationQuestion(
           mapping,
           form,
           request,
           response,
           confirmDeleteKey,
           KeyConstants.QUESTION_PROCEDURE_STUDY_GROUP_DELETE_CONFIRMATION,
           new String[] {procedureCategory, procedure, speciesAndGroups}),
       confirmDeleteKey,
       "");
 }
 protected IacucProtocolSpeciesStudyGroup getSelectedSpeciesStudyGroup(
     HttpServletRequest request, IacucProtocolStudyGroupBean selectedProtocolStudyGroupBean) {
   int selectedStudyGroupIndex =
       getSelectedBeanIndex(request, BEAN_STUDY_GROUP_SPECIES_FIND_PARAM_START, FIND_PARAM_END);
   return selectedProtocolStudyGroupBean
       .getIacucProtocolSpeciesStudyGroups()
       .get(selectedStudyGroupIndex);
 }
 @SuppressWarnings("deprecation")
 public ActionForward addProtocolStudyGroup(
     ActionMapping mapping,
     ActionForm form,
     HttpServletRequest request,
     HttpServletResponse response)
     throws Exception {
   int groupBeanIndex = getSelectedLine(request);
   IacucProtocolStudyGroupBean selectedIacucProtocolStudyGroupBean =
       getIacucProtocol(form).getIacucProtocolStudyGroupBeans().get(groupBeanIndex);
   IacucProtocolForm protocolForm = (IacucProtocolForm) form;
   if (applyRules(
       new AddProtocolStudyGroupEvent(
           protocolForm.getIacucProtocolDocument(),
           selectedIacucProtocolStudyGroupBean,
           groupBeanIndex))) {
     getIacucProtocolProcedureService()
         .addProtocolStudyGroup(selectedIacucProtocolStudyGroupBean, getIacucProtocol(form));
     selectedIacucProtocolStudyGroupBean.initializeStudyGroupItems();
   }
   return mapping.findForward(Constants.MAPPING_BASIC);
 }