Filter did not deal with gzipped nut. Refactor in order to both servlet and filter rely on same logic.