Spring security ans Rewriter