Added parentState to PersistenceExtensions

Retrieves the last state which is not equal the current state with <item>.parentState