private static ListenerDirective[] buildListenerDirectives( Element element )
private static ListenerDirective[] buildListenerDirectives( Element element ) throws Exception
    private static ListenerDirective[] buildListenerDirectives( Element element )    {        Element[] children = ElementHelper.getChildren( element );        ListenerDirective[] types = new ListenerDirective[ children.length ];        for( int i=0; i<children.length; i++ )        {            Element child = children[i];            types[i] = buildListenerDirective( child );        }        return types;    }