try
{
ChromatticSession session = persister.getSession();
ConsumerMapping cm = session.findById(ConsumerMapping.class, consumer.getPersistentKey());
RegistrationMapping rm = cm.createAndAddRegistrationMappingFrom(null);
rm.initFrom(registration);
registration.setPersistentKey(rm.getPersistentKey());
persister.save();
}
catch (Exception e)
{