One of the answers ( the right one

) is: "Add a filter and map it to /reports/*. In the filter get all the headers using request.getHeaderNames() and and getHeaders() method. Store the headers into the database.". There is a double "and" between "request.getHeaderNames()" and "getHeaders()".
Also i think you should be consistent and also use "request.getHeaders()" instead of only "getHeaders()".
Johnny