public String expandBody(MssCFGenContext genContext) {
    final String S_ProcName = "CFAccMssCFBindVendorUnitTenantId.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 ICFAccVendorUnitObj) {
      long tenantId = ((ICFAccVendorUnitObj) genDef).getRequiredTenantId();
      ret = Long.toString(tenantId);
    } else {
      throw CFLib.getDefaultExceptionFactory()
          .newUnsupportedClassException(
              getClass(), "expandBody", "genContext.getGenDef()", genDef, "ICFAccVendorUnitObj");
    }

    return (ret);
  }
 public CFSecurityCursor openFeeDetailCursorByFeeIdx(
     CFSecurityAuthorization Authorization, long TenantId, long FeeId) {
   String sql =
       getSqlSelectFeeDetailBuff()
           + "WHERE "
           + "fedt.tenantid = "
           + Long.toString(TenantId)
           + " "
           + "AND "
           + "fedt.feeid = "
           + Long.toString(FeeId)
           + " "
           + "ORDER BY "
           + "fedt.TenantId ASC"
           + ", "
           + "fedt.FeeDetailId ASC";
   CFAccCursor cursor = new CFAccSybaseCursor(Authorization, schema, sql);
   return (cursor);
 }