SerializedPage result = null;
if (object instanceof IManageablePage)
{
IManageablePage page = (IManageablePage)object;
result = serializedPagesCache.getPage(sessionId, page.getPageId());
if (result == null)
{
result = serializePage(sessionId, page);
if (result != null)
{
serializedPagesCache.storePage(result);
}
}
}
else if (object instanceof SerializedPage)
{
SerializedPage page = (SerializedPage)object;
if (page.getData() == null)
{
result = restoreStrippedSerializedPage(page);
}
else
{