Extract adding the actual entity to the MappingContext into its own method along with error handling spanning the entire entity initialization process.
See #2329
Original pull request: #2367.
@ -357,15 +357,34 @@ public abstract class AbstractMappingContext<E extends MutablePersistentEntity<?
@@ -357,15 +357,34 @@ public abstract class AbstractMappingContext<E extends MutablePersistentEntity<?
// Eagerly cache the entity as we might have to find it during recursive lookups.
@ -373,7 +392,7 @@ public abstract class AbstractMappingContext<E extends MutablePersistentEntity<?
@@ -373,7 +392,7 @@ public abstract class AbstractMappingContext<E extends MutablePersistentEntity<?
@ -388,21 +407,11 @@ public abstract class AbstractMappingContext<E extends MutablePersistentEntity<?
@@ -388,21 +407,11 @@ public abstract class AbstractMappingContext<E extends MutablePersistentEntity<?