} else {
setParameter(ALLOW_SINGLE_DOCUMENT, Boolean.toString(true));
}
Publication publication = document.getPublication();
DocumentIdentityMap map = document.getIdentityMap();
Document liveDocument = map.getAreaVersion(document, Publication.LIVE_AREA);
List missingDocuments = new ArrayList();
ServiceSelector selector = null;
SiteManager siteManager = null;
try {
selector = (ServiceSelector) this.manager.lookup(SiteManager.ROLE + "Selector");
siteManager = (SiteManager) selector.select(publication.getSiteManagerHint());
Document[] requiredDocuments = siteManager.getRequiredResources(liveDocument);
for (int i = 0; i < requiredDocuments.length; i++) {
if (!siteManager.containsInAnyLanguage(requiredDocuments[i])) {
Document authoringVersion = map.getAreaVersion(requiredDocuments[i],
Publication.AUTHORING_AREA);
missingDocuments.add(authoringVersion);
}
}
} catch (Exception e) {