if (nameParts.length != 2) {
continue;
}
String namespaceUri = template.lookupNamespaceURI(nameParts[0]);
if (namespaceUri != null) {
handlers.add(new TemplateBasedTagHandler(template, namespaceUri, nameParts[1]));
}
}
return new DefaultTagRegistry(handlers.build());
}