selector = (ServiceSelector) getManager().lookup(SiteManager.ROLE + "Selector");
siteManager = (SiteManager) selector.select(pub.getSiteManagerHint());
siteManager.add("/collection", collection.getDelegate());
} finally {
selector.release(siteManager);
getManager().release(selector);
}
Document doc = map.get(pub, Publication.AUTHORING_AREA, "/index", "en");
collection.add(doc);