requiresRewriting = requiresRewriting == null ? Boolean.FALSE : requiresRewriting;
if (requiresRewriting.booleanValue()) {
// rewrite url's
URLRewriter urlRewriter = consumerEnv.getURLRewriter();
String rewrittenMarkup = urlRewriter.rewriteURLs(response.getMarkupContext().getMarkupString());
if (rewrittenMarkup != null) {
response.getMarkupContext().setMarkupString(rewrittenMarkup);
}
}