public ContentRewriterFeature get(GadgetSpec spec) { ContentRewriterFeature rewriterFeature = (ContentRewriterFeature)spec.getAttribute("content-rewriter"); if (rewriterFeature != null) { return(rewriterFeature); } rewriterFeature = new ContentRewriterFeature(spec, includeUrls, excludeUrls, expires, includeTags); spec.setAttribute("content-rewriter", rewriterFeature); return(rewriterFeature); }