extended PersistenceConfig to add fine grained control of persistence behavior on lifecycle state changes
removed classes that are not in use anymore