public void rewrite(Gadget gadget, MutableContent content) {
if (gadget.getSpec().getModulePrefs().getFeatures().containsKey("caja") ||
"1".equals(gadget.getContext().getParameter("caja"))) {
final URI retrievedUri = gadget.getContext().getUrl().toJavaUri();
UriCallback cb = new UriCallback() {
public UriCallbackOption getOption(ExternalReference externalReference, String string) {
return UriCallbackOption.REWRITE;
}
public Reader retrieve(ExternalReference externalReference, String string)