protected void handleButton1Request(Map values) throws AMConsoleException {
    SCSAML2SOAPBindingViewBean vb =
        (SCSAML2SOAPBindingViewBean) getViewBean(SCSAML2SOAPBindingViewBean.class);
    Map attrValues = (Map) getPageSessionAttribute(SCSAML2SOAPBindingViewBean.PROPERTY_ATTRIBUTE);
    Set handlers =
        (Set) attrValues.get(SCSAML2SOAPBindingModelImpl.ATTRIBUTE_NAME_REQUEST_HANDLER_LIST);

    if ((handlers == null) || handlers.isEmpty()) {
      handlers = new OrderedSet();
      attrValues.put(
          SCSAML2SOAPBindingModelImpl.ATTRIBUTE_NAME_REQUEST_HANDLER_LIST, (OrderedSet) handlers);
    }

    String val =
        SAML2SOAPBindingRequestHandler.toString(
            (String) values.get(ATTR_KEY), (String) values.get(ATTR_CLASS));

    if (handlers.contains(val)) {
      throw new AMConsoleException("soapBinding.service.requestHandlerList.already.exist");
    }

    handlers.add(val);
    setPageSessionAttribute(SCSAML2SOAPBindingViewBean.PAGE_MODIFIED, "1");
    backTrail();
    unlockPageTrailForSwapping();
    passPgSessionMap(vb);
    vb.forwardTo(getRequestContext());
  }
  private void populateRequestHandlerListTable(Set handlers) {
    tablePopulated = true;
    CCActionTableModel tblModel =
        (CCActionTableModel)
            propertySheetModel.getModel(
                SCSAML2SOAPBindingModelImpl.ATTRIBUTE_NAME_REQUEST_HANDLER_LIST);

    tblModel.clearAll();
    boolean firstEntry = true;
    int counter = 0;

    for (Iterator iter = handlers.iterator(); iter.hasNext(); ) {
      String c = (String) iter.next();
      SAML2SOAPBindingRequestHandler entry = new SAML2SOAPBindingRequestHandler(c);

      if (entry.isValid()) {
        if (!firstEntry) {
          tblModel.appendRow();
        } else {
          firstEntry = false;
        }

        tblModel.setValue(TBL_REQUEST_HANDLER_LIST_DATA_KEY, entry.strKey);
        tblModel.setValue(TBL_REQUEST_HANDLER_LIST_DATA_CLASS, entry.strClass);
        tblModel.setValue(TBL_REQUEST_HANDLER_LIST_HREF_EDIT_ACTION, Integer.toString(counter));
        tblModel.setValue(
            TBL_REQUEST_HANDLER_LIST_LABEL_EDIT_ACTION,
            "soapBinding.service.table.requestHandlerList.action.edit.label");
        tblModel.setValue(TBL_REQUEST_HANDLER_LIST_HREF_DUP_ACTION, Integer.toString(counter));
        tblModel.setValue(
            TBL_REQUEST_HANDLER_LIST_LABEL_DUP_ACTION,
            "soapBinding.service.table.requestHandlerList.action.dup.label");
      }
      counter++;
    }

    setPageSessionAttribute(
        SCSAML2SOAPBindingModelImpl.ATTRIBUTE_NAME_REQUEST_HANDLER_LIST, (OrderedSet) handlers);
  }