UuidToUrlRewriter rewriter = new UuidToUrlRewriter(currentUrl, linkResolver, factory);
if (factory.isDocument(currentUrl)) {
rewriter.setCurrentDocument(factory.getFromURL(currentUrl));
}
return rewriter.rewrite(name);
} catch (final Exception e) {
throw new ConfigurationException("Resolving link " + name + " failed: ", e);
}
}