public void deleteISOCountryCurrency(ICFSecurityISOCountryCurrencyObj Obj) {
   ICFSecurityISOCountryCurrencyObj obj = Obj;
   ((ICFInternetSchema) schema.getBackingStore())
       .getTableISOCountryCurrency()
       .deleteISOCountryCurrency(schema.getAuthorization(), obj.getISOCountryCurrencyBuff());
   obj.forget(true);
 }
 public void deleteISOCountryCurrencyByIdIdx(short ISOCountryId, short ISOCurrencyId) {
   CFSecurityISOCountryCurrencyPKey pkey =
       ((ICFInternetSchema) schema.getBackingStore()).getFactoryISOCountryCurrency().newPKey();
   pkey.setRequiredISOCountryId(ISOCountryId);
   pkey.setRequiredISOCurrencyId(ISOCurrencyId);
   ICFSecurityISOCountryCurrencyObj obj = readISOCountryCurrency(pkey);
   if (obj != null) {
     ICFSecurityISOCountryCurrencyEditObj editObj =
         (ICFSecurityISOCountryCurrencyEditObj) obj.getEdit();
     boolean editStarted;
     if (editObj == null) {
       editObj = (ICFSecurityISOCountryCurrencyEditObj) obj.beginEdit();
       if (editObj != null) {
         editStarted = true;
       } else {
         editStarted = false;
       }
     } else {
       editStarted = false;
     }
     if (editObj != null) {
       editObj.delete();
       if (editStarted) {
         editObj.endEdit();
       }
     }
     obj.forget(true);
   }
 }
  public void forgetISOCountryCurrencyByCurrencyIdx(short ISOCurrencyId) {
    if (indexByCurrencyIdx == null) {
      return;
    }
    CFSecurityISOCountryCurrencyByCurrencyIdxKey key =
        ((ICFInternetSchema) schema.getBackingStore())
            .getFactoryISOCountryCurrency()
            .newCurrencyIdxKey();
    key.setRequiredISOCurrencyId(ISOCurrencyId);
    if (indexByCurrencyIdx.containsKey(key)) {
      Map<CFSecurityISOCountryCurrencyPKey, ICFSecurityISOCountryCurrencyObj> mapCurrencyIdx =
          indexByCurrencyIdx.get(key);
      if (mapCurrencyIdx != null) {
        List<ICFSecurityISOCountryCurrencyObj> toForget =
            new LinkedList<ICFSecurityISOCountryCurrencyObj>();
        ICFSecurityISOCountryCurrencyObj cur = null;
        Iterator<ICFSecurityISOCountryCurrencyObj> iter = mapCurrencyIdx.values().iterator();
        while (iter.hasNext()) {
          cur = iter.next();
          toForget.add(cur);
        }
        iter = toForget.iterator();
        while (iter.hasNext()) {
          cur = iter.next();
          cur.forget(true);
        }
      }

      indexByCurrencyIdx.remove(key);
    }
  }
 public ICFSecurityISOCountryCurrencyObj readISOCountryCurrency(
     CFSecurityISOCountryCurrencyPKey pkey, boolean forceRead) {
   ICFSecurityISOCountryCurrencyObj obj = null;
   if ((!forceRead) && members.containsKey(pkey)) {
     obj = members.get(pkey);
   } else {
     CFSecurityISOCountryCurrencyBuff readBuff =
         ((ICFInternetSchema) schema.getBackingStore())
             .getTableISOCountryCurrency()
             .readDerivedByIdIdx(
                 schema.getAuthorization(),
                 pkey.getRequiredISOCountryId(),
                 pkey.getRequiredISOCurrencyId());
     if (readBuff != null) {
       obj = schema.getISOCountryCurrencyTableObj().newInstance();
       obj.setPKey(
           ((ICFInternetSchema) schema.getBackingStore())
               .getFactoryISOCountryCurrency()
               .newPKey());
       obj.setBuff(readBuff);
       obj = (ICFSecurityISOCountryCurrencyObj) obj.realize();
     } else if (schema.getCacheMisses()) {
       members.put(pkey, null);
     }
   }
   return (obj);
 }
 public ICFSecurityISOCountryCurrencyObj updateISOCountryCurrency(
     ICFSecurityISOCountryCurrencyObj Obj) {
   ICFSecurityISOCountryCurrencyObj obj = Obj;
   ((ICFInternetSchema) schema.getBackingStore())
       .getTableISOCountryCurrency()
       .updateISOCountryCurrency(schema.getAuthorization(), Obj.getISOCountryCurrencyBuff());
   obj = (ICFSecurityISOCountryCurrencyObj) Obj.realize();
   return (obj);
 }
 public ICFSecurityISOCountryCurrencyObj createISOCountryCurrency(
     ICFSecurityISOCountryCurrencyObj Obj) {
   ICFSecurityISOCountryCurrencyObj obj = Obj;
   CFSecurityISOCountryCurrencyBuff buff = obj.getISOCountryCurrencyBuff();
   ((ICFInternetSchema) schema.getBackingStore())
       .getTableISOCountryCurrency()
       .createISOCountryCurrency(schema.getAuthorization(), buff);
   obj.copyBuffToPKey();
   obj = obj.realize();
   return (obj);
 }
 public void forgetISOCountryCurrencyByIdIdx(short ISOCountryId, short ISOCurrencyId) {
   if (members == null) {
     return;
   }
   CFSecurityISOCountryCurrencyPKey key =
       ((ICFInternetSchema) schema.getBackingStore()).getFactoryISOCountryCurrency().newPKey();
   key.setRequiredISOCountryId(ISOCountryId);
   key.setRequiredISOCurrencyId(ISOCurrencyId);
   if (members.containsKey(key)) {
     ICFSecurityISOCountryCurrencyObj probed = members.get(key);
     if (probed != null) {
       probed.forget(true);
     }
   }
 }
 public ICFSecurityISOCountryCurrencyObj lockISOCountryCurrency(
     CFSecurityISOCountryCurrencyPKey pkey) {
   ICFSecurityISOCountryCurrencyObj locked = null;
   CFSecurityISOCountryCurrencyBuff lockBuff =
       ((ICFInternetSchema) schema.getBackingStore())
           .getTableISOCountryCurrency()
           .lockDerived(schema.getAuthorization(), pkey);
   if (lockBuff != null) {
     locked = schema.getISOCountryCurrencyTableObj().newInstance();
     locked.setPKey(
         ((ICFInternetSchema) schema.getBackingStore()).getFactoryISOCountryCurrency().newPKey());
     locked.setBuff(lockBuff);
     locked = (ICFSecurityISOCountryCurrencyObj) locked.realize();
   } else {
     throw CFLib.getDefaultExceptionFactory()
         .newCollisionDetectedException(getClass(), "lockISOCountryCurrency", pkey);
   }
   return (locked);
 }
 public void minimizeMemory() {
   allISOCountryCurrency = null;
   indexByCountryIdx = null;
   indexByCurrencyIdx = null;
   List<ICFSecurityISOCountryCurrencyObj> toForget =
       new LinkedList<ICFSecurityISOCountryCurrencyObj>();
   ICFSecurityISOCountryCurrencyObj cur = null;
   Iterator<ICFSecurityISOCountryCurrencyObj> iter = members.values().iterator();
   while (iter.hasNext()) {
     cur = iter.next();
     if (cur.getEdit() == null) {
       toForget.add(cur);
     }
   }
   iter = toForget.iterator();
   while (iter.hasNext()) {
     cur = iter.next();
     cur.forget();
   }
 }
 public void deleteISOCountryCurrencyByCurrencyIdx(short ISOCurrencyId) {
   CFSecurityISOCountryCurrencyByCurrencyIdxKey key =
       ((ICFInternetSchema) schema.getBackingStore())
           .getFactoryISOCountryCurrency()
           .newCurrencyIdxKey();
   key.setRequiredISOCurrencyId(ISOCurrencyId);
   if (indexByCurrencyIdx == null) {
     indexByCurrencyIdx =
         new HashMap<
             CFSecurityISOCountryCurrencyByCurrencyIdxKey,
             Map<CFSecurityISOCountryCurrencyPKey, ICFSecurityISOCountryCurrencyObj>>();
   }
   if (indexByCurrencyIdx.containsKey(key)) {
     Map<CFSecurityISOCountryCurrencyPKey, ICFSecurityISOCountryCurrencyObj> dict =
         indexByCurrencyIdx.get(key);
     ((ICFInternetSchema) schema.getBackingStore())
         .getTableISOCountryCurrency()
         .deleteISOCountryCurrencyByCurrencyIdx(schema.getAuthorization(), ISOCurrencyId);
     Iterator<ICFSecurityISOCountryCurrencyObj> iter = dict.values().iterator();
     ICFSecurityISOCountryCurrencyObj obj;
     List<ICFSecurityISOCountryCurrencyObj> toForget =
         new LinkedList<ICFSecurityISOCountryCurrencyObj>();
     while (iter.hasNext()) {
       obj = iter.next();
       toForget.add(obj);
     }
     iter = toForget.iterator();
     while (iter.hasNext()) {
       obj = iter.next();
       obj.forget(true);
     }
     indexByCurrencyIdx.remove(key);
   } else {
     ((ICFInternetSchema) schema.getBackingStore())
         .getTableISOCountryCurrency()
         .deleteISOCountryCurrencyByCurrencyIdx(schema.getAuthorization(), ISOCurrencyId);
   }
 }
  public void forgetISOCountryCurrency(
      ICFSecurityISOCountryCurrencyObj Obj, boolean forgetSubObjects) {
    ICFSecurityISOCountryCurrencyObj obj = Obj;
    CFSecurityISOCountryCurrencyPKey pkey = obj.getPKey();
    if (members.containsKey(pkey)) {
      ICFSecurityISOCountryCurrencyObj keepObj = members.get(pkey);
      // Detach object from alternate, duplicate, all and PKey indexes

      if (indexByCountryIdx != null) {
        CFSecurityISOCountryCurrencyByCountryIdxKey keyCountryIdx =
            ((ICFInternetSchema) schema.getBackingStore())
                .getFactoryISOCountryCurrency()
                .newCountryIdxKey();
        keyCountryIdx.setRequiredISOCountryId(keepObj.getRequiredISOCountryId());
        Map<CFSecurityISOCountryCurrencyPKey, ICFSecurityISOCountryCurrencyObj> mapCountryIdx =
            indexByCountryIdx.get(keyCountryIdx);
        if (mapCountryIdx != null) {
          mapCountryIdx.remove(keepObj.getPKey());
        }
      }

      if (indexByCurrencyIdx != null) {
        CFSecurityISOCountryCurrencyByCurrencyIdxKey keyCurrencyIdx =
            ((ICFInternetSchema) schema.getBackingStore())
                .getFactoryISOCountryCurrency()
                .newCurrencyIdxKey();
        keyCurrencyIdx.setRequiredISOCurrencyId(keepObj.getRequiredISOCurrencyId());
        Map<CFSecurityISOCountryCurrencyPKey, ICFSecurityISOCountryCurrencyObj> mapCurrencyIdx =
            indexByCurrencyIdx.get(keyCurrencyIdx);
        if (mapCurrencyIdx != null) {
          mapCurrencyIdx.remove(keepObj.getPKey());
        }
      }

      if (allISOCountryCurrency != null) {
        allISOCountryCurrency.remove(keepObj.getPKey());
      }
      members.remove(pkey);
      if (forgetSubObjects) {}
    }
  }
 public List<ICFSecurityISOCountryCurrencyObj> readISOCountryCurrencyByCurrencyIdx(
     short ISOCurrencyId, boolean forceRead) {
   final String S_ProcName = "readISOCountryCurrencyByCurrencyIdx";
   CFSecurityISOCountryCurrencyByCurrencyIdxKey key =
       ((ICFInternetSchema) schema.getBackingStore())
           .getFactoryISOCountryCurrency()
           .newCurrencyIdxKey();
   key.setRequiredISOCurrencyId(ISOCurrencyId);
   Map<CFSecurityISOCountryCurrencyPKey, ICFSecurityISOCountryCurrencyObj> dict;
   if (indexByCurrencyIdx == null) {
     indexByCurrencyIdx =
         new HashMap<
             CFSecurityISOCountryCurrencyByCurrencyIdxKey,
             Map<CFSecurityISOCountryCurrencyPKey, ICFSecurityISOCountryCurrencyObj>>();
   }
   if ((!forceRead) && indexByCurrencyIdx.containsKey(key)) {
     dict = indexByCurrencyIdx.get(key);
   } else {
     dict = new HashMap<CFSecurityISOCountryCurrencyPKey, ICFSecurityISOCountryCurrencyObj>();
     // Allow other threads to dirty-read while we're loading
     indexByCurrencyIdx.put(key, dict);
     ICFSecurityISOCountryCurrencyObj obj;
     CFSecurityISOCountryCurrencyBuff[] buffList =
         ((ICFInternetSchema) schema.getBackingStore())
             .getTableISOCountryCurrency()
             .readDerivedByCurrencyIdx(schema.getAuthorization(), ISOCurrencyId);
     CFSecurityISOCountryCurrencyBuff buff;
     for (int idx = 0; idx < buffList.length; idx++) {
       buff = buffList[idx];
       obj = schema.getISOCountryCurrencyTableObj().newInstance();
       obj.setPKey(
           ((ICFInternetSchema) schema.getBackingStore())
               .getFactoryISOCountryCurrency()
               .newPKey());
       obj.setBuff(buff);
       ICFSecurityISOCountryCurrencyObj realized =
           (ICFSecurityISOCountryCurrencyObj) obj.realize();
     }
   }
   Comparator<ICFSecurityISOCountryCurrencyObj> cmp =
       new Comparator<ICFSecurityISOCountryCurrencyObj>() {
         public int compare(
             ICFSecurityISOCountryCurrencyObj lhs, ICFSecurityISOCountryCurrencyObj rhs) {
           if (lhs == null) {
             if (rhs == null) {
               return (0);
             } else {
               return (-1);
             }
           } else if (rhs == null) {
             return (1);
           } else {
             CFSecurityISOCountryCurrencyPKey lhsPKey = lhs.getPKey();
             CFSecurityISOCountryCurrencyPKey rhsPKey = rhs.getPKey();
             int ret = lhsPKey.compareTo(rhsPKey);
             return (ret);
           }
         }
       };
   int len = dict.size();
   ICFSecurityISOCountryCurrencyObj arr[] = new ICFSecurityISOCountryCurrencyObj[len];
   Iterator<ICFSecurityISOCountryCurrencyObj> valIter = dict.values().iterator();
   int idx = 0;
   while ((idx < len) && valIter.hasNext()) {
     arr[idx++] = valIter.next();
   }
   if (idx < len) {
     throw CFLib.getDefaultExceptionFactory()
         .newArgumentUnderflowException(getClass(), S_ProcName, 0, "idx", idx, len);
   } else if (valIter.hasNext()) {
     throw CFLib.getDefaultExceptionFactory()
         .newArgumentOverflowException(getClass(), S_ProcName, 0, "idx", idx, len);
   }
   Arrays.sort(arr, cmp);
   ArrayList<ICFSecurityISOCountryCurrencyObj> arrayList =
       new ArrayList<ICFSecurityISOCountryCurrencyObj>(len);
   for (idx = 0; idx < len; idx++) {
     arrayList.add(arr[idx]);
   }
   List<ICFSecurityISOCountryCurrencyObj> sortedList = arrayList;
   return (sortedList);
 }
 public List<ICFSecurityISOCountryCurrencyObj> readAllISOCountryCurrency(boolean forceRead) {
   final String S_ProcName = "readAllISOCountryCurrency";
   if ((allISOCountryCurrency == null) || forceRead) {
     Map<CFSecurityISOCountryCurrencyPKey, ICFSecurityISOCountryCurrencyObj> map =
         new HashMap<CFSecurityISOCountryCurrencyPKey, ICFSecurityISOCountryCurrencyObj>();
     allISOCountryCurrency = map;
     CFSecurityISOCountryCurrencyBuff[] buffList =
         ((ICFInternetSchema) schema.getBackingStore())
             .getTableISOCountryCurrency()
             .readAllDerived(schema.getAuthorization());
     CFSecurityISOCountryCurrencyBuff buff;
     ICFSecurityISOCountryCurrencyObj obj;
     for (int idx = 0; idx < buffList.length; idx++) {
       buff = buffList[idx];
       obj = newInstance();
       obj.setPKey(
           ((ICFInternetSchema) schema.getBackingStore())
               .getFactoryISOCountryCurrency()
               .newPKey());
       obj.setBuff(buff);
       ICFSecurityISOCountryCurrencyObj realized =
           (ICFSecurityISOCountryCurrencyObj) obj.realize();
     }
   }
   Comparator<ICFSecurityISOCountryCurrencyObj> cmp =
       new Comparator<ICFSecurityISOCountryCurrencyObj>() {
         public int compare(
             ICFSecurityISOCountryCurrencyObj lhs, ICFSecurityISOCountryCurrencyObj rhs) {
           if (lhs == null) {
             if (rhs == null) {
               return (0);
             } else {
               return (-1);
             }
           } else if (rhs == null) {
             return (1);
           } else {
             CFSecurityISOCountryCurrencyPKey lhsPKey = lhs.getPKey();
             CFSecurityISOCountryCurrencyPKey rhsPKey = rhs.getPKey();
             int ret = lhsPKey.compareTo(rhsPKey);
             return (ret);
           }
         }
       };
   int len = allISOCountryCurrency.size();
   ICFSecurityISOCountryCurrencyObj arr[] = new ICFSecurityISOCountryCurrencyObj[len];
   Iterator<ICFSecurityISOCountryCurrencyObj> valIter = allISOCountryCurrency.values().iterator();
   int idx = 0;
   while ((idx < len) && valIter.hasNext()) {
     arr[idx++] = valIter.next();
   }
   if (idx < len) {
     throw CFLib.getDefaultExceptionFactory()
         .newArgumentUnderflowException(getClass(), S_ProcName, 0, "idx", idx, len);
   } else if (valIter.hasNext()) {
     throw CFLib.getDefaultExceptionFactory()
         .newArgumentOverflowException(getClass(), S_ProcName, 0, "idx", idx, len);
   }
   Arrays.sort(arr, cmp);
   ArrayList<ICFSecurityISOCountryCurrencyObj> arrayList =
       new ArrayList<ICFSecurityISOCountryCurrencyObj>(len);
   for (idx = 0; idx < len; idx++) {
     arrayList.add(arr[idx]);
   }
   List<ICFSecurityISOCountryCurrencyObj> sortedList = arrayList;
   return (sortedList);
 }
  public ICFSecurityISOCountryCurrencyObj realizeISOCountryCurrency(
      ICFSecurityISOCountryCurrencyObj Obj) {
    ICFSecurityISOCountryCurrencyObj obj = Obj;
    CFSecurityISOCountryCurrencyPKey pkey = obj.getPKey();
    ICFSecurityISOCountryCurrencyObj keepObj = null;
    if (members.containsKey(pkey) && (null != members.get(pkey))) {
      ICFSecurityISOCountryCurrencyObj existingObj = members.get(pkey);
      keepObj = existingObj;

      /*
       *	We always rebind the data because if we're being called, some index has
       *	been updated and is refreshing it's data, which may or may not have changed
       */

      // Detach object from alternate and duplicate indexes, leave PKey alone

      if (indexByCountryIdx != null) {
        CFSecurityISOCountryCurrencyByCountryIdxKey keyCountryIdx =
            ((ICFInternetSchema) schema.getBackingStore())
                .getFactoryISOCountryCurrency()
                .newCountryIdxKey();
        keyCountryIdx.setRequiredISOCountryId(keepObj.getRequiredISOCountryId());
        Map<CFSecurityISOCountryCurrencyPKey, ICFSecurityISOCountryCurrencyObj> mapCountryIdx =
            indexByCountryIdx.get(keyCountryIdx);
        if (mapCountryIdx != null) {
          mapCountryIdx.remove(keepObj.getPKey());
        }
      }

      if (indexByCurrencyIdx != null) {
        CFSecurityISOCountryCurrencyByCurrencyIdxKey keyCurrencyIdx =
            ((ICFInternetSchema) schema.getBackingStore())
                .getFactoryISOCountryCurrency()
                .newCurrencyIdxKey();
        keyCurrencyIdx.setRequiredISOCurrencyId(keepObj.getRequiredISOCurrencyId());
        Map<CFSecurityISOCountryCurrencyPKey, ICFSecurityISOCountryCurrencyObj> mapCurrencyIdx =
            indexByCurrencyIdx.get(keyCurrencyIdx);
        if (mapCurrencyIdx != null) {
          mapCurrencyIdx.remove(keepObj.getPKey());
        }
      }

      keepObj.setBuff(Obj.getBuff());
      // Attach new object to alternate and duplicate indexes -- PKey stay stable

      if (indexByCountryIdx != null) {
        CFSecurityISOCountryCurrencyByCountryIdxKey keyCountryIdx =
            ((ICFInternetSchema) schema.getBackingStore())
                .getFactoryISOCountryCurrency()
                .newCountryIdxKey();
        keyCountryIdx.setRequiredISOCountryId(keepObj.getRequiredISOCountryId());
        Map<CFSecurityISOCountryCurrencyPKey, ICFSecurityISOCountryCurrencyObj> mapCountryIdx =
            indexByCountryIdx.get(keyCountryIdx);
        if (mapCountryIdx != null) {
          mapCountryIdx.put(keepObj.getPKey(), keepObj);
        }
      }

      if (indexByCurrencyIdx != null) {
        CFSecurityISOCountryCurrencyByCurrencyIdxKey keyCurrencyIdx =
            ((ICFInternetSchema) schema.getBackingStore())
                .getFactoryISOCountryCurrency()
                .newCurrencyIdxKey();
        keyCurrencyIdx.setRequiredISOCurrencyId(keepObj.getRequiredISOCurrencyId());
        Map<CFSecurityISOCountryCurrencyPKey, ICFSecurityISOCountryCurrencyObj> mapCurrencyIdx =
            indexByCurrencyIdx.get(keyCurrencyIdx);
        if (mapCurrencyIdx != null) {
          mapCurrencyIdx.put(keepObj.getPKey(), keepObj);
        }
      }
      if (allISOCountryCurrency != null) {
        allISOCountryCurrency.put(keepObj.getPKey(), keepObj);
      }
    } else {
      keepObj = obj;
      keepObj.setIsNew(false);
      // Attach new object to PKey, all, alternate, and duplicate indexes
      members.put(keepObj.getPKey(), keepObj);
      if (allISOCountryCurrency != null) {
        allISOCountryCurrency.put(keepObj.getPKey(), keepObj);
      }

      if (indexByCountryIdx != null) {
        CFSecurityISOCountryCurrencyByCountryIdxKey keyCountryIdx =
            ((ICFInternetSchema) schema.getBackingStore())
                .getFactoryISOCountryCurrency()
                .newCountryIdxKey();
        keyCountryIdx.setRequiredISOCountryId(keepObj.getRequiredISOCountryId());
        Map<CFSecurityISOCountryCurrencyPKey, ICFSecurityISOCountryCurrencyObj> mapCountryIdx =
            indexByCountryIdx.get(keyCountryIdx);
        if (mapCountryIdx != null) {
          mapCountryIdx.put(keepObj.getPKey(), keepObj);
        }
      }

      if (indexByCurrencyIdx != null) {
        CFSecurityISOCountryCurrencyByCurrencyIdxKey keyCurrencyIdx =
            ((ICFInternetSchema) schema.getBackingStore())
                .getFactoryISOCountryCurrency()
                .newCurrencyIdxKey();
        keyCurrencyIdx.setRequiredISOCurrencyId(keepObj.getRequiredISOCurrencyId());
        Map<CFSecurityISOCountryCurrencyPKey, ICFSecurityISOCountryCurrencyObj> mapCurrencyIdx =
            indexByCurrencyIdx.get(keyCurrencyIdx);
        if (mapCurrencyIdx != null) {
          mapCurrencyIdx.put(keepObj.getPKey(), keepObj);
        }
      }
    }
    return (keepObj);
  }
  public void startElement(String uri, String localName, String qName, Attributes attrs)
      throws SAXException {
    CFAsteriskXMsgSchemaMessageFormatter schemaFormatter = null;
    try {
      // Common XML Attributes
      String attrId = null;
      // Attribute Extraction
      String attrLocalName;
      int numAttrs;
      int idxAttr;
      final String S_ProcName = "startElement";
      final String S_LocalName = "LocalName";

      assert qName.equals("RqstISOCountryCurrencyReadAll");

      CFAsteriskXMsgRqstHandler xmsgRqstHandler = (CFAsteriskXMsgRqstHandler) getParser();
      if (xmsgRqstHandler == null) {
        throw CFLib.getDefaultExceptionFactory()
            .newNullArgumentException(getClass(), S_ProcName, 0, "getParser()");
      }

      schemaFormatter = xmsgRqstHandler.getSchemaMessageFormatter();

      ICFAsteriskSchemaObj schemaObj = xmsgRqstHandler.getSchemaObj();
      if (schemaObj == null) {
        throw CFLib.getDefaultExceptionFactory()
            .newNullArgumentException(getClass(), S_ProcName, 0, "getParser().getSchemaObj()");
      }

      // Extract Attributes
      numAttrs = attrs.getLength();
      for (idxAttr = 0; idxAttr < numAttrs; idxAttr++) {
        attrLocalName = attrs.getLocalName(idxAttr);
        if (attrLocalName.equals("Id")) {
          if (attrId != null) {
            throw CFLib.getDefaultExceptionFactory()
                .newUniqueIndexViolationException(
                    getClass(), S_ProcName, S_LocalName, attrLocalName);
          }
          attrId = attrs.getValue(idxAttr);
        } else if (attrLocalName.equals("schemaLocation")) {
          // ignored
        } else {
          throw CFLib.getDefaultExceptionFactory()
              .newUnrecognizedAttributeException(
                  getClass(), S_ProcName, getParser().getLocationInfo(), attrLocalName);
        }
      }

      // Save named attributes to context
      CFLibXmlCoreContext curContext = getParser().getCurContext();
      // Read the objects and prepare the response XML
      List<ICFSecurityISOCountryCurrencyObj> list =
          schemaObj.getISOCountryCurrencyTableObj().readAllISOCountryCurrency(true);
      String responseOpening =
          schemaFormatter.formatRspnXmlPreamble()
              + "\n"
              + "\t"
              + CFAsteriskXMsgISOCountryCurrencyMessageFormatter
                  .formatISOCountryCurrencyRspnListOpenTag();
      xmsgRqstHandler.appendResponse(responseOpening);
      Iterator<ICFSecurityISOCountryCurrencyObj> iter = list.iterator();
      ICFSecurityISOCountryCurrencyObj cur;
      String subxml;
      while (iter.hasNext()) {
        cur = iter.next();
        subxml =
            CFAsteriskXMsgISOCountryCurrencyMessageFormatter.formatISOCountryCurrencyRspnDerivedRec(
                "\n\t\t", cur.getISOCountryCurrencyBuff());
        xmsgRqstHandler.appendResponse(subxml);
      }
      String responseClosing =
          "\n"
              + "\t"
              + CFAsteriskXMsgISOCountryCurrencyMessageFormatter
                  .formatISOCountryCurrencyRspnListCloseTag()
              + schemaFormatter.formatRspnXmlPostamble();
      xmsgRqstHandler.appendResponse(responseClosing);
    } catch (RuntimeException e) {
      CFAsteriskXMsgRqstHandler xmsgRqstHandler = ((CFAsteriskXMsgRqstHandler) getParser());
      schemaFormatter = xmsgRqstHandler.getSchemaMessageFormatter();
      String response =
          schemaFormatter.formatRspnXmlPreamble()
              + "\n"
              + "\t"
              + CFAsteriskXMsgSchemaMessageFormatter.formatRspnException("\n\t\t\t", e)
              + "\n"
              + schemaFormatter.formatRspnXmlPostamble();
      xmsgRqstHandler.resetResponse();
      xmsgRqstHandler.appendResponse(response);
      xmsgRqstHandler.setCaughtException(true);
    } catch (Error e) {
      CFAsteriskXMsgRqstHandler xmsgRqstHandler = ((CFAsteriskXMsgRqstHandler) getParser());
      schemaFormatter = xmsgRqstHandler.getSchemaMessageFormatter();
      String response =
          schemaFormatter.formatRspnXmlPreamble()
              + "\n"
              + "\t"
              + CFAsteriskXMsgSchemaMessageFormatter.formatRspnException("\n\t\t\t", e)
              + "\n"
              + schemaFormatter.formatRspnXmlPostamble();
      xmsgRqstHandler.resetResponse();
      xmsgRqstHandler.appendResponse(response);
      xmsgRqstHandler.setCaughtException(true);
    }
  }