producerInfosMapping = session.insert(ProducerInfosMapping.class, ProducerInfosMapping.NODE_NAME);
if (loadFromXMLIfNeeded)
{
// loading initial data is requested so do it
XMLConsumerRegistry fromXML = new XMLConsumerRegistry(configurationIS);
fromXML.reloadConsumers();
// Save to JCR
List<ProducerInfoMapping> infos = producerInfosMapping.getProducerInfos();
List<WSRPConsumer> xmlConsumers = fromXML.getConfiguredConsumers();
for (WSRPConsumer consumer : xmlConsumers)
{
ProducerInfo info = consumer.getProducerInfo();
// create the ProducerInfoMapping children node