if (getFlag(FLAG_PREVENT_DIRTY))
{
return;
}
final IPageManager pageManager = getSession().getPageManager();
if (!getFlag(FLAG_IS_DIRTY) && (isVersioned() && pageManager.supportsVersioning() ||
// we need to get pageId for new page instances even when the page doesn't need
// versioning, otherwise pages override each other in the page store and back button
// support is broken
isInitialization))
{
setFlag(FLAG_IS_DIRTY, true);
setNextAvailableId();
if (isInitialization == false)
{
pageManager.touchPage(this);
}
}
}