* @param xmlAnswer
   * @param module
   * @param dbModule
   * @return Cons
   */
  public static Cons generateTableAssertions(String tableName, Cons xmlAnswer, Module module, Module dbModule) {
    { NamedDescription tableRelation = RDBMS.getTableRelation(tableName, dbModule);
      Cons assertions = Stella.NIL;

      if (!(Stella_Object.isaP(xmlAnswer.value, RDBMS.SGT_STELLA_XML_ELEMENT) &&
          (Stella.stringEqlP(((XmlElement)(xmlAnswer.value)).name, "PlanExecution") &&
           Stella.stringEqlP(((XmlElement)(xmlAnswer.value)).namespaceUri, null)))) {
        Stella.STANDARD_WARNING.nativeStream.println("Warning: Didn't find a Fetch Answer in `" + xmlAnswer + "'");
        return (Stella.NIL);
      }
      { Object old$Module$000 = Stella.$MODULE$.get();
        Object old$Context$000 = Stella.$CONTEXT$.get();

        try {
          Native.setSpecial(Stella.$MODULE$, module);
          Native.setSpecial(Stella.$CONTEXT$, ((Module)(Stella.$MODULE$.get())));
          { Stella_Object answer = null;
            Cons iter000 = xmlAnswer.rest.rest;

            for (;!(iter000 == Stella.NIL); iter000 = iter000.rest) {
              answer = iter000.value;
              if (Stella_Object.isaP(answer, RDBMS.SGT_STELLA_CONS) &&
                  Stella_Object.isaP(((Cons)(answer)).value, RDBMS.SGT_STELLA_XML_ELEMENT)) {
                { XmlElement item000 = ((XmlElement)(((Cons)(answer)).value));

                  if (Stella.stringEqlP(item000.name, "OBJECT") &&
                      Stella.stringEqlP(item000.namespaceUri, null)) {
                    assertions = Cons.cons(RDBMS.buildOneTableAssertion(tableRelation, ((Cons)(answer)).rest.rest, dbModule), assertions);
                  }
                  else if (Stella.stringEqlP(item000.name, "Error") &&
                      Stella.stringEqlP(item000.namespaceUri, null)) {
                    { OutputStringStream stream000 = OutputStringStream.newOutputStringStream();

                      stream000.nativeStream.print("`" + ((StringWrapper)(((Cons)(answer)).rest.rest.value)).wrapperValue + "'");
                      throw ((StellaException)(StellaException.newStellaException(stream000.theStringReader()).fillInStackTrace()));
                    }
                  }
                  else if (Stella.stringEqlP(item000.name, "ERROR") &&
                      Stella.stringEqlP(item000.namespaceUri, null)) {
                    { OutputStringStream stream001 = OutputStringStream.newOutputStringStream();

                      stream001.nativeStream.print("`" + ((StringWrapper)(((Cons)(answer)).rest.rest.value)).wrapperValue + "'");
                      throw ((StellaException)(StellaException.newStellaException(stream001.theStringReader()).fillInStackTrace()));
                    }
                  }
                }
              }
            }
          }

        } finally {
          Stella.$CONTEXT$.set(old$Context$000);
          Stella.$MODULE$.set(old$Module$000);
        }
      }
      return (assertions);
    }
  }