RegistrationSPI registration = super.internalCreateRegistration(consumer, registrationProperties);
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();
}