static Pair persistentConcepts(S dbProgramID, S caseID) { Concepts cc = newConceptsWithClassFinder(dbProgramID + (nempty(caseID) ? "/" + caseID : "")); S botName = botNameForConcepts(cc); try { ensureDBNotRunning(botName); } on fail { cc.dontSave = true; // SAFETY } cc.persist(); ret pair(cc, combineAutoCloseables(cc, methodsBot2(botName, cc, db_standardExposedMethods(), cc.lock))); }