implement reference-one-document with changes in XmlDriver, ClassMetadata and UnitOfWork