/**
  * This method is to get the selected procedure location.
  *
  * @param protocolForm
  * @param request
  * @return
  */
 @SuppressWarnings("deprecation")
 private IacucProtocolStudyGroupLocation getSelectedProcedureLocation(
     IacucProtocolForm protocolForm, HttpServletRequest request) {
   IacucProtocolDocument document = protocolForm.getIacucProtocolDocument();
   IacucProtocolStudyGroupLocation procedureLocation =
       document
           .getIacucProtocol()
           .getIacucProtocolStudyGroupLocations()
           .get(getLineToDelete(request));
   return procedureLocation;
 }
 @Override
 public List<KeyValue> getKeyValues() {
   IacucProtocolDocument iacucProtocolDocument = (IacucProtocolDocument) getDocument();
   String reviewType =
       iacucProtocolDocument
           .getIacucProtocol()
           .getProtocolSubmission()
           .getProtocolReviewTypeCode();
   Collection<IacucProtocolOnlineReviewDeterminationRecommendation> recommendations =
       this.getKeyValuesService()
           .findAll(IacucProtocolOnlineReviewDeterminationRecommendation.class);
   List<KeyValue> keyValues = new ArrayList<KeyValue>();
   keyValues.add(new ConcreteKeyValue("", "select"));
   for (IacucProtocolOnlineReviewDeterminationRecommendation recommendation : recommendations) {
     if (recommendation.getIacucProtocolReviewTypeCode() != null
         && recommendation.getIacucProtocolReviewTypeCode().equals(reviewType)) {
       keyValues.add(
           new ConcreteKeyValue(
               recommendation.getProtocolOnlineReviewDeterminationRecommendationCode().toString(),
               recommendation.getIacucProtocolActionType().getDescription()));
     }
   }
   return keyValues;
 }
 /**
  * This method is to get the selected procedure bean.
  *
  * @param request
  * @param document
  * @return
  */
 protected IacucProtocolStudyGroupBean getSelectedProcedureBean(
     HttpServletRequest request, IacucProtocolDocument document) {
   int selectedBeanIndex = getSelectedBeanIndex(request, BEAN_FIND_PARAM_START, FIND_PARAM_END);
   return document.getIacucProtocol().getIacucProtocolStudyGroupBeans().get(selectedBeanIndex);
 }