* @throws RepositoryException if the workspace can not be accessed
*/
protected LocalItemStateManager createItemStateManager()
throws RepositoryException {
SharedItemStateManager sism = getSharedItemStateManager();
ItemStateCacheFactory iscf =
context.getRepositoryContext().getItemStateCacheFactory();
// FIXME We should be able to avoid the instanceof operator here
if (context.getSessionImpl() instanceof XASessionImpl) {
return XAItemStateManager.createInstance(