@Override
        public void doFilter( ServletRequest servletRequest, ServletResponse servletResponse ) throws IOException, ServletException
        {
            if ( index < filters.size() )
            {
                Log.trace( "Executing injected filter {} of {}...", index + 1, filters.size() );
                filters.get( index++ ).doFilter( servletRequest, servletResponse, this );
            }
            else
            {
                Log.trace( "Executed all injected filters. Resuming original chain." );
                parentChain.doFilter( servletRequest, servletResponse );
            }
        }
Creates a new instance.

@param parentChain the chain to which the filters are to be appended (cannot be null).
@param filters The filters to append (cannot be null, but can be empty).
xmppserver/src/main/java/org/jivesoftware/admin/PluginFilter.java