if (log.isDebugEnabled()) { log.debug("cleanOldConfigSoc with subs " + substitutions); }
  private void cleanOldConfigSocietyAssemblies() throws SQLException {    ResultSet rs =      executeQuery(stmt, dbp.getQuery("queryOldSocietyConfigAssembliesToClean", substitutions));    while (rs.next()) {      String asb = rs.getString(1);      if (asb == null || asb.equals(""))	continue;      if (log.isDebugEnabled()) {	log.debug("Cleaning asb from config: " + asb);      }      substitutions.put(":assemblies_to_clean:", "(" + sqlQuote(asb) + ")");      executeUpdate(dbp.getQuery("cleanTrialConfigAssembly", substitutions));      // So we've just removed the assembly from the config time.      // Will remove it now unless it is also in runtime      if (log.isDebugEnabled() && assemblyInRuntime(asb)) {	log.debug("In CleanOld with asb " + asb + " but wont really delete cause its in runtime for trial " + trialId);      }      if (! isAssemblyUsed(asb))	cleanAssembly(asb);    }    rs.close();  }