Added resource rewriter class