final WebAppController controller = (WebAppController) container.getComponentInstanceOfType(WebAppController.class);
URIResolver uriResolver = new URIResolver() {
@Override
public String resolveURI(SiteId siteId) {
SiteKey siteKey = Util.from(siteId);
NavigationResource navResource = new NavigationResource(siteKey, "");
SimpleURL url = new SimpleURL(new SimpleURLContext(container, controller));
url.setSchemeUse(false);
url.setAuthorityUse(false);
String urlString = url.setResource(navResource).toString();
return urlString.substring(0, urlString.length() - 1);