Improved the PersistentObjectBuilder. Now it persists referenced objects
while building the main object.