@Override
public CallbackCompletion<Void> initialize ( WGFileMessageExtractionResultMessageCloudletContext context, CloudletCallbackArguments<WGFileMessageExtractionResultMessageCloudletContext> arguments)
{
this.logger.info ("WGCloudlet initializing...");
context.cloudlet = arguments.getCloudlet ();
final IConfiguration configuration = context.cloudlet.getConfiguration ();
final IConfiguration queueConfiguration4 = configuration.spliceConfiguration (ConfigurationIdentifier.resolveAbsolute ("queuerequest.consumer"));
context.consumerev = context.cloudlet.getConnectorFactory (IAmqpQueueConsumerConnectorFactory.class).create (queueConfiguration4, String.class, PlainTextDataEncoder.DEFAULT_INSTANCE, new AmqpConsumerCallbackControl (), context);
final IConfiguration queueConfiguration3 = configuration.spliceConfiguration (ConfigurationIdentifier.resolveAbsolute ("queuestate.publisher"));
context.publisherev = context.cloudlet.getConnectorFactory (IAmqpQueuePublisherConnectorFactory.class).create (queueConfiguration3, String.class, PlainTextDataEncoder.DEFAULT_INSTANCE, new AmqpPublisherCallbackStato (), context);
ICloudletController<WGFileMessageExtractionResultMessageCloudletContext> cloudlet = arguments.getCloudlet();
context.cloudlet = cloudlet;
IConfiguration cloudletConfiguration = cloudlet.getConfiguration ();
IConfiguration publisherConfiguration = cloudletConfiguration.spliceConfiguration( ConfigurationIdentifier.resolveAbsolute( "queue.publisher" ) );
IConfiguration consumerConfiguration = cloudletConfiguration.spliceConfiguration(ConfigurationIdentifier.resolveAbsolute("queue.consumer"));
context.publisher = cloudlet.getConnectorFactory( IAmqpQueuePublisherConnectorFactory.class ).create(
publisherConfiguration,
FileMessage.class,
JsonDataEncoder.create( FileMessage.class ),