public PersistentDaemonRegistry(File registryFile, FileLockManager fileLockManager) {
this.registryFile = registryFile;
cache = new FileIntegrityViolationSuppressingPersistentStateCacheDecorator<DaemonRegistryContent>(
new SimpleStateCache<DaemonRegistryContent>(
registryFile,
new OnDemandFileAccess(
registryFile,
"daemon addresses registry",
fileLockManager),
new DefaultSerializer<DaemonRegistryContent>()
));