void (AntDomTypeDef typedef, final AntDomProject antProject) { final String uri = typedef.getUri().getStringValue(); final String customTagName = typedef.getName().getStringValue(); final String classname = typedef.getClassName().getStringValue(); if (classname != null && customTagName != null) { addCustomDefinition(typedef, customTagName, uri, ClassProvider.create(classname, getClassLoader(typedef, antProject))); } else { defineCustomElementsFromResources(typedef, uri, antProject, null); } }