if (isOverwrite(msg)) { executeUpdate(query);
StringBuffer diff = compareQueryResults(rs, subvars); if (diff == null) {  } else if (conflictHandler != null) { Object[] msg = { "You are attempting to redefine alib component: " + id, diff, "Do you want to overwrite the definition?" }; if (isOverwrite(msg)) { String query = dbp.getQuery("updateAlibComponent", substitutions); executeUpdate(query); }
    private void insureAlib() throws SQLException {        String id = (String) substitutions.get(":component_alib_id:");        if (alibComponents.contains(id)) return; // Already present        // may need to be added        insureLib();        ResultSet rs = executeQuery(stmt, dbp.getQuery("checkAlibComponent", substitutions));        if (!rs.next()) {            executeUpdate(dbp.getQuery("insertAlibComponent", substitutions));        } else if (rs.getBoolean(1)) {            // Value is ok        } else if (conflictHandler != null) {            String query = dbp.getQuery("updateAlibComponent", substitutions);            String[] msg = {                "You are attempting to redefine alib component: " + id,                "using query:",                query,                "Do you want to overwrite the definition?"            };            if (isOverwrite(msg)) {                executeUpdate(query);            }        }        alibComponents.add(id); // Avoid re-querying later        rs.close();    }