public void doTag(XMLOutput output) throws JellyTagException { String uri = getUri(); tagLibrary = new DynamicTagLibrary( uri ); // inherit tags from an existing tag library if ( isInherit() ) { tagLibrary.setParent( context.getTagLibrary( uri ) ); } context.registerTagLibrary( uri, tagLibrary ); invokeBody(output); tagLibrary = null; }