properties.setProperty(AMQPUtil.CONFIG_AMQP_PROVIDER_PORT, port);
properties.setProperty(AMQPUtil.CONFIG_AMQP_PROVIDER_USERNAME, username);
properties.setProperty(AMQPUtil.CONFIG_AMQP_PROVIDER_PASSWORD, password);
MessageConsumer consumer = new MessageConsumer();
AMQPTopicReceiver receiver = new AMQPTopicReceiverImpl(properties, consumer);
System.out.println("Waiting for topic messages : \n");
AMQPRoutingKey key = new AMQPRoutingKey("workflowTerminated", "");
receiver.Subscribe(key);
}