Made ApplicationPersistenceStore thread-safe