pims.setLastModified(now);
// use ProducerInfosMapping to create a child ProducerInfo node and initialize it
ProducerInfoMapping pim = pims.createProducerInfo(info.getId());
// we first need to persist the ProducerInfoMapping as a child of the ProducerInfosMapping element, using its id as path
String key = session.persist(pims, pim, info.getId());
info.setKey(key);
info.setLastModified(now);
pim.initFrom(info);
persister.closeSession(true);