// Store the result in the jsp page context
try {
page = (Page) repository.get(uri);
language = LanguageUtils.getPreferredLanguage(page, request, site);
if (language != null)
page.switchTo(language);
} catch (ContentRepositoryException e) {
logger.warn("Error trying to load page " + uri + ": " + e.getMessage(), e);
return SKIP_BODY;
}