/** * Copies keys from the master object to the embedded detail object. * * @param master <code>PersistentObject</code> instance that <em>must</em> be the parent record of * <code>className</code> object. For simple two-level composites, this value will be the type * returned by <code>newPersistentObject</code>. * @param embedded embedded <code>PersistentObject</code> instance to populate. * @param beanProperty bean name of accessor in <code>PersistentObject</code> to instantiate. * @throws IllegalArgumentException if class name of <code>embedded</code> is invalid. * @throws ClassCastException if <code>master</code> is not the appropriate class type. */ public void populateEmbeddedObjectKeyValues( PersistentObject master, PersistentObject embedded, String beanProperty) { AbstractDomain domain = getDomain(fullDomainClassName); try { domain.populateEmbeddedObjectKeyValues(master, embedded, beanProperty); } finally { releaseDomain(domain); } }