void (AntDomCustomElement element) { final Class clazz = element.getDefinitionClass(); if (clazz != null && AntCustomTask.class.getName().equals(clazz.getName())) { found.set(true); } else { super.visitAntDomElement(element); } }