Implemented NullPersistence for non persistent mode