Adding case when mapper decide not to update

I add a check if the return statement is null then we ignore the commit 
and add a getPartitionsKeys in the PersistedState interface