this.sessionContext = sessionContext;
this.transientSpace = transientSpace;
int cacheSize = 0;
try {
RepositoryConfiguration config =
sessionContext.getGlobalContext().getInstance(
RepositoryConfiguration.class);
cacheSize = config.getNodeStateCacheSize();
} catch (IllegalStateException ignore) {
// FIXME: Shouldn't use the context to pass around configuration
}
if (cacheSize <= 0) {