public PageHeaderInfo getPageItemInfo() throws Exception {
PageHeaderInfo pageHeaderInfo = new PageHeaderInfo();
String itemNaturalKey = getItemKey();
boolean updateStatistics = false;
ItemInfo itemInfo = api.getItem(itemNaturalKey, updateStatistics);
if (itemInfo == null) {
pageHeaderInfo.setPageTitle(siteName + " - " + getLanguageByValue("Page not found"));
pageHeaderInfo.setMetaKeywords("");
pageHeaderInfo.setMetaDescription("");
return pageHeaderInfo;
}
pageHeaderInfo.setPageTitle(itemInfo.getPageTitle());
pageHeaderInfo.setMetaKeywords(itemInfo.getMetaKeywords());
pageHeaderInfo.setMetaDescription(itemInfo.getMetaDescription());
return pageHeaderInfo;
}