TaskHistoryRepository taskHistoryRepository = new CacheBackedTaskHistoryRepository(cacheAccess,
new CacheBackedFileSnapshotRepository(cacheAccess,
serializerRegistry.build(),
new RandomLongIdGenerator()));
return new ShortCircuitTaskArtifactStateRepository(
startParameter,
instantiator,
new DefaultTaskArtifactStateRepository(
taskHistoryRepository,
instantiator,