* Attempts to resolve the given URI to be associated with a TagLibrary
* otherwise null is returned to indicate no tag library could be found
* so that the namespace URI should be treated as just vanilla XML.
*/
public TagLibrary resolveTagLibrary(String uri) {
ServiceDiscovery discovery = getServiceDiscovery();
String name = uri;
if ( uri.startsWith( "jelly:" ) ) {
name = "jelly." + uri.substring(6);
}
log.info( "Looking up service name: " + name );
ServiceInfo[] infoArray = discovery.findServices(name);
if ( infoArray != null && infoArray.length > 0 ) {
for (int i = 0; i < infoArray.length; i++ ) {
ServiceInfo info = infoArray[i];
try {