// Currently it only warns, but newer jcr versions (1.15+) will throw an exception
session.checkLive();
}
catch (RepositoryException e)
{
throw new InvalidItemStateException("This kind of operation is forbidden after a session.logout().", e);
}
if (data == null)
{
throw new InvalidItemStateException("Invalid item state. Item was removed or discarded.");
}
session.updateLastAccessTime();
return true;
}