protected void validateDefaultSQL( SQLTemplate query, ProjectPath path, Validator validator) { if (Util.isEmptyString(query.getDefaultTemplate())) { // see if there is at least one adapter-specific template... Iterator it = query.getTemplateKeys().iterator(); while (it.hasNext()) { String key = (String) it.next(); if (!Util.isEmptyString(query.getCustomTemplate(key))) { return; } } validator.registerWarning("Query has no default SQL template", path); } }