final String urn = ElementHelper.getAttribute( element, "uri", null ); final String classname = ElementHelper.getAttribute( element, "classname", null );
final String spec = ElementHelper.getAttribute( element, "uri", null ); final URI uri = createURI( spec ); final String classname = ElementHelper.getAttribute( element, "class", null );
    private static ListenerDirective buildListenerDirective( Element element )    {        final String tag = element.getTagName();        if( LISTENER_ELEMENT_NAME.equals( tag ) )        {            final String name = ElementHelper.getAttribute( element, "name", null );            final String urn = ElementHelper.getAttribute( element, "uri", null );            final String classname = ElementHelper.getAttribute( element, "classname", null );            final String deps = ElementHelper.getAttribute( element, "depends", null );            final String[] depends = buildDependenciesArray( deps );            final Properties properties = buildProperties( element );            return new ListenerDirective( name, urn, classname, depends, properties );        }        else        {            final String error =               "Invalid resource element name ["               + tag              + "].";            throw new IllegalArgumentException( error );        }    }