It might be best to extend OncePerRequestFilter