Updated the template for DocumentFilter class.