final IConfiguration queueConfiguration2 = configuration.spliceConfiguration (ConfigurationIdentifier.resolveAbsolute ("queue1.consumer"));
context.consumer = context.cloudlet.getConnectorFactory (IAmqpQueueConsumerConnectorFactory.class).create (queueConfiguration2, String.class, PlainTextDataEncoder.DEFAULT_INSTANCE, new AmqpConsumerCallback (), context);
final IConfiguration queueConfiguration = configuration.spliceConfiguration (ConfigurationIdentifier.resolveAbsolute ("queue2.publisher"));
context.publisher = context.cloudlet.getConnectorFactory (IAmqpQueuePublisherConnectorFactory.class).create (queueConfiguration, String.class, PlainTextDataEncoder.DEFAULT_INSTANCE, new AmqpPublisherCallback (), context);
final IConfiguration kvConfiguration = configuration.spliceConfiguration (ConfigurationIdentifier.resolveAbsolute ("resultstore"));
context.kvStore = context.cloudlet.getConnectorFactory (IKvStoreConnectorFactory.class).create (kvConfiguration, Dato.class, JsonDataEncoder.create(Dato.class) , new KeyValueCallback (), context);
final IConfiguration kvConfiguration2 = configuration.spliceConfiguration (ConfigurationIdentifier.resolveAbsolute ("timestore"));
context.kvStoretempi = context.cloudlet.getConnectorFactory (IKvStoreConnectorFactory.class).create (kvConfiguration2, ListaTempi.class, JsonDataEncoder.create(ListaTempi.class) , new KeyValueCallbackTempi (), context);
return CallbackCompletion.createAndChained (context.consumer.initialize (),context.publisher.initialize (),context.kvStore.initialize(),context.kvStoretempi.initialize());
}