while(i.hasNext())
{
SiteNodeVO siteNodeVO = (SiteNodeVO)i.next();
try
{
WebPage webPage = new WebPage();
webPage.setSiteNodeId(siteNodeVO.getSiteNodeId());
webPage.setLanguageId(this.languageId);
webPage.setContentId(null);
webPage.setNavigationTitle(this.nodeDeliveryController.getPageNavigationTitle(getDatabase(), this.getPrincipal(), siteNodeVO.getSiteNodeId(), this.languageId, null, META_INFO_BINDING_NAME, NAV_TITLE_ATTRIBUTE_NAME, USE_LANGUAGE_FALLBACK, this.deliveryContext, escapeHTML));
webPage.setMetaInfoContentId(this.nodeDeliveryController.getMetaInfoContentId(getDatabase(), this.getPrincipal(), siteNodeVO.getSiteNodeId(), META_INFO_BINDING_NAME, USE_INHERITANCE, this.deliveryContext));
webPage.setUrl(this.nodeDeliveryController.getPageUrl(getDatabase(), this.getPrincipal(), siteNodeVO.getSiteNodeId(), this.languageId, null, this.deliveryContext));
pages.add(webPage);
}
catch(Exception e)
{
logger.info("An error occurred when looking up one of the related pages:" + e.getMessage(), e);