log = CSMART.createLogger("org.cougaar.tools.csmart.core.db");
createLogger();
    public PopulateDb(String cmtType, String hnaType, String csmiType,                      String experimentName,                      String exptId, String trialId, boolean createNew,                      DBConflictHandler ch)        throws SQLException, IOException    {        super();        log = CSMART.createLogger("org.cougaar.tools.csmart.core.db");        if (cmtType == null) throw new IllegalArgumentException("null cmtType");        if (hnaType == null) throw new IllegalArgumentException("null hnaType");        if (csmiType == null) throw new IllegalArgumentException("null csmiType");        if (exptId == null) throw new IllegalArgumentException("null exptId");        if (trialId == null) throw new IllegalArgumentException("null trialId");        if (ch == null) throw new IllegalArgumentException("null conflict handler");        this.cmtType = cmtType;        this.hnaType = hnaType;        this.csmiType = csmiType;        this.exptId = exptId;        this.trialId = trialId;        this.conflictHandler = ch;        substitutions.put(":expt_id:", exptId);        substitutions.put(":cmt_type:", cmtType);        String oldExperimentName = getOldExperimentName();        if (!experimentName.equals(oldExperimentName)) {            cloneTrial(hnaType, trialId, experimentName, "Modified " + oldExperimentName);            writeEverything = true;        } else {            cleanTrial(cmtType, hnaType, csmiType, trialId);            writeEverything = false;        }        setNewAssemblyIds();    }