Fixed EmbeddedObject's getParent method and added getParentDocument.
Also added lineage support for it to Factory