You have same code in both SecurityFIlter and DisableCacheFilter. Why not merge them to common utility method?