Object value = null;
ServiceSelector selector = null;
TreeSiteManager _manager = null;
try {
PageEnvelope envelope = getEnvelope(objectModel, name);
Publication publication = envelope.getPublication();
selector = (ServiceSelector) this.manager.lookup(SiteManager.ROLE + "Selector");
_manager = (TreeSiteManager) selector.select(publication.getSiteManagerHint());
DocumentIdentityMap map = new DocumentIdentityMap(this.manager, getLogger());
if (name.equals(AUTHORING_NODE)) {
SiteTree authoringTree = _manager.getTree(map,
publication,
Publication.AUTHORING_AREA);
value = authoringTree.getNode(envelope.getDocument().getId());
}
if (name.equals(LIVE_NODE)) {
SiteTree liveTree = _manager.getTree(map, publication, Publication.LIVE_AREA);
value = liveTree.getNode(envelope.getDocument().getId());
}
if (name.equals(TRASH_NODE)) {
SiteTree trashTree = _manager.getTree(map, publication, Publication.TRASH_AREA);
value = trashTree.getNode(envelope.getDocument().getId());
}
if (name.equals(ARCHIVE_NODE)) {
SiteTree archiveTree = _manager.getTree(map, publication, Publication.ARCHIVE_AREA);
value = archiveTree.getNode(envelope.getDocument().getId());
}
} catch (Exception e) {
throw new ConfigurationException("Obtaining value for [" + name + "] failed: ", e);
}
finally {