Save the changes in the session when those changes are in pending to be saved at the end of a component migration into the JCR