try {
PublicationTemplateManager templateManager = (PublicationTemplateManager) this._manager
.lookup(PublicationTemplateManager.ROLE);
PageEnvelope envelope = getEnvelope(objectModel, name);
ExistingUsecaseResolver resolver = new ExistingUsecaseResolver(name);
templateManager.visit(envelope.getPublication(), resolver);
Publication publication = resolver.getPublication();
if (publication != null) {
resolvedSitemapUri = PublicationTemplateManagerImpl.getBaseURI(publication) + "/"
+ USECASE_SITEMAP;
} else {
resolvedSitemapUri = "context://lenya/" + USECASE_SITEMAP;