public String rewriteUri(ExternalReference ref, UriEffect effect,
LoaderType loader, Map<String, ?> hints) {
URI uri = ref.getUri();
if (uri.getScheme().equalsIgnoreCase("https") ||
uri.getScheme().equalsIgnoreCase("http")) {
return gadgetUri.resolve(Uri.fromJavaUri(uri)).toString();
}
return null;
}
};
}