handling recursions when loading domain objects