public String expandBody(MssCFGenContext genContext) {
    final String S_ProcName = "CFBamMssCFBindISOCountryLanguageISOCountryId.expandBody() ";

    if (genContext == null) {
      throw CFLib.getDefaultExceptionFactory()
          .newNullArgumentException(getClass(), "expandBody", 1, "genContext");
    }

    ICFLibAnyObj genDef = genContext.getGenDef();
    if (genDef == null) {
      throw CFLib.getDefaultExceptionFactory()
          .newNullArgumentException(getClass(), "expandBody", 1, "genContext.getGenDef()");
    }

    String ret;

    if (genDef instanceof ICFBamISOCountryLanguageObj) {
      short iSOCountryId = ((ICFBamISOCountryLanguageObj) genDef).getRequiredISOCountryId();
      ret = Short.toString(iSOCountryId);
    } else {
      throw CFLib.getDefaultExceptionFactory()
          .newUnsupportedClassException(
              getClass(),
              "expandBody",
              "genContext.getGenDef()",
              genDef,
              "ICFBamISOCountryLanguageObj");
    }

    return (ret);
  }
 public CFSecurityCursor openISOCountryCurrencyCursorByCurrencyIdx(
     CFSecurityAuthorization Authorization, short ISOCurrencyId) {
   String sql =
       getSqlSelectISOCountryCurrencyBuff()
           + " WHERE "
           + "iccy.isocurrencyid = "
           + Short.toString(ISOCurrencyId)
           + " "
           + "ORDER BY "
           + "iccy.ISOCountryId ASC"
           + ", "
           + "iccy.ISOCurrencyId ASC";
   CFBamCursor cursor = new CFBamMSSqlCursor(Authorization, schema, sql);
   return (cursor);
 }