protected void setAttribute() {

    AttributeCode attributeCode = (AttributeCode) iterator.next();

    if (attributeCode.equals(currentAttributeCode)) {
      pageContext.setAttribute("selected", "selected");
    } else {
      pageContext.setAttribute("selected", "");
    }
    pageContext.setAttribute("attributeId", attributeCode.getAttributeId());
    pageContext.setAttribute("attributeCode", attributeCode.getAttributeCode());
    pageContext.setAttribute("attributeName", attributeCode.getAttributeName());
    pageContext.setAttribute("description", "" + attributeCode.getDescription());
    if (attributeCode instanceof BankBranch) {
      pageContext.setAttribute(
          "orderBankId", ((BankBranch) attributeCode).getBank().getAttributeId());
    }
    //        if(attributeCode instanceof Bank && this.selectedType == null) {
    //            pageContext.setAttribute("bankID",
    // ((com.laconic.fm.bank.component.Bank)attributeCode).getBankID());
    //        }else if(attributeCode instanceof AccountType && this.selectedType == null) {
    //            pageContext.setAttribute("accountTypeID",
    // ((AccountType)attributeCode).getAccountTypeID());
    //        }else if(attributeCode instanceof VoucherType && this.selectedType == null) {
    //            pageContext.setAttribute("voucherTypeID",
    // ((VoucherType)attributeCode).getVoucherTypeID());
    //        }else if(attributeCode instanceof NoteType && this.selectedType == null) {
    //            pageContext.setAttribute("noteTypeID", ((NoteType)attributeCode).getNoteTypeID());
    //        }else if(attributeCode instanceof BankBranch) {
    //            pageContext.setAttribute("orderBankCode",
    // ((BankBranch)attributeCode).getBank().getAttributeCode());
    //            pageContext.setAttribute("orderBankName",
    // ((BankBranch)attributeCode).getBank().getAttributeName());
    //        }
  }
  protected void setAttribute() {

    AttributeCode attributeCode = (AttributeCode) iterator.next();

    if (attributeCode.equals(currentAttributeCode)) {
      pageContext.setAttribute("selected", "selected");
    } else {
      pageContext.setAttribute("selected", "");
    }
    pageContext.setAttribute(
        "attributeId",
        attributeCode.getAttributeId() == null ? "" : attributeCode.getAttributeId());
    pageContext.setAttribute(
        "attributeCode",
        attributeCode.getAttributeCode() == null ? "" : attributeCode.getAttributeCode());
    pageContext.setAttribute(
        "attributeName",
        attributeCode.getAttributeName() == null ? "" : attributeCode.getAttributeName());
    pageContext.setAttribute(
        "description",
        attributeCode.getDescription() == null ? "" : attributeCode.getDescription());
  }