// Page only goes into session if it is stateless
if (!page.isPageStateless())
{
Session session = getSession();
// Get page map entry from page
final IPageMapEntry entry = page.getPageMapEntry();
// Entry has been accessed
pushAccess(entry);
// Store entry in session
final String attribute = attributeForId(entry.getNumericId());
if (session.getAttribute(attribute) == null)
{
// Set attribute if it is a new page, so that it will exists
// already for other threads that can come on the same time.