mappings = session.findByPath(ConsumersAndGroupsMapping.class, ConsumersAndGroupsMapping.NODE_NAME); // todo: needed?
try
{
ConsumerMapping cm = mappings.createConsumer(consumerId);
mappings.getConsumers().add(cm);
cm.initFrom(consumer);
consumer.setPersistentKey(cm.getPersistentKey());
persister.closeSession(session, true);
}
catch (Exception e)
{