ConsumerGroupSPI group = super.internalCreateConsumerGroup(name);
ChromatticSession session = persister.getSession();
try
{
ConsumerGroupMapping cgm = mappings.createConsumerGroup(name);
mappings.getConsumerGroups().add(cgm);
group.setPersistentKey(cgm.getPersistentKey());
cgm.initFrom(group);
persister.closeSession(session, true);
}
catch (Exception e)
{
e.printStackTrace(); // todo: fix me