public static void insertSqlCommandTemplate(PropertyList template) {
    { Stella_Object commandname = template.lookup(Sdbc.KWD_COMMAND);

      { Stella_Object temp000 = template.lookup(Sdbc.KWD_DATA_SOURCE);

        { Cons datasources = (((temp000 != null) ? temp000 : Sdbc.KWD_DEFAULT)).consify();
          Stella_Object sql = template.lookup(Sdbc.KWD_SQL);
          KeyValueList templates = ((KeyValueList)(((KeyValueMap)(Sdbc.$SQL_COMMAND_TEMPLATES$.get())).lookup(commandname)));

          if (commandname == null) {
            { OutputStringStream stream000 = OutputStringStream.newOutputStringStream();

              stream000.nativeStream.print("Missing :command name in SQL template: `" + template + "'");
              throw ((StellaException)(StellaException.newStellaException(stream000.theStringReader()).fillInStackTrace()));
            }
          }
          if (!(Stella_Object.stringP(sql))) {
            { OutputStringStream stream001 = OutputStringStream.newOutputStringStream();

              {
                stream001.nativeStream.println("Illegal or missing :sql specification in SQL template: `" + sql + "'");
                stream001.nativeStream.print("   String expected.");
              }
;
              throw ((StellaException)(StellaException.newStellaException(stream001.theStringReader()).fillInStackTrace()));
            }
          }
          if (templates == null) {
            templates = KeyValueList.newKeyValueList();
            ((KeyValueMap)(Sdbc.$SQL_COMMAND_TEMPLATES$.get())).insertAt(commandname, templates);
          }
          { Stella_Object datasource = null;
            Cons iter000 = datasources;

            for (;!(iter000 == Stella.NIL); iter000 = iter000.rest) {
              datasource = iter000.value;
              if (datasource == Sdbc.KWD_OTHERWISE) {
                datasource = Sdbc.KWD_DEFAULT;
              }
              templates.insertAt(datasource, template);
            }
          }
        }
      }
    }
  }