Improved Initialization code with @cgijbels
Renamed ApplicationPersistenceStore to a more appropriate name: InMemoryPersistenceStore