/*
 *
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 *
 */
package org.messaginghub.amqperative.example;

public class HelloWorld {

    public static void main(String[] args) throws Exception {

        try {

        } catch (Exception exp) {
            System.out.println("Caught exception, exiting.");
            exp.printStackTrace(System.out);
            System.exit(1);
        } finally {
        }
    }
}

@@ -858,112 +858,1826 @@
 e;%0A%0A
-public class HelloWorld %7B%0A%0A    public static void main(String%5B%5D args) throws Exception %7B%0A%0A        try %7B%0A
+import java.util.UUID;%0Aimport java.util.concurrent.TimeUnit;%0A%0Aimport org.messaginghub.amqperative.Connection;%0Aimport org.messaginghub.amqperative.Container;%0Aimport org.messaginghub.amqperative.ContainerOptions;%0Aimport org.messaginghub.amqperative.Delivery;%0Aimport org.messaginghub.amqperative.Message;%0Aimport org.messaginghub.amqperative.Receiver;%0Aimport org.messaginghub.amqperative.Sender;%0Aimport org.messaginghub.amqperative.Tracker;%0A%0Apublic class HelloWorld %7B%0A%0A    public static void main(String%5B%5D args) throws Exception %7B%0A%0A        try %7B%0A            String brokerHost = %22localhost%22;%0A            int brokerPort = 5672;%0A            String queueName = %22test-queue%22;%0A%0A            ContainerOptions options = new ContainerOptions();%0A            options.setContainerId(UUID.randomUUID().toString());%0A            Container container = Container.create(options);%0A%0A            Connection connection = container.createConnection(brokerHost, brokerPort);%0A            Sender sender = connection.createSender(queueName);%0A            sender.openFuture().get(5, TimeUnit.SECONDS);%0A%0A            Message%3CString%3E message = Message.create(%22Hello World%22).setDurable(true);%0A            Tracker tracker = sender.send(message);%0A%0A            tracker.settle();%0A%0A            Receiver receiver = connection.createReceiver(queueName);%0A            receiver.openFuture().get(5, TimeUnit.SECONDS);%0A            receiver.addCredit(1);%0A%0A            Delivery delivery = receiver.receive();%0A            if (delivery != null) %7B%0A                Message%3C?%3E received = delivery.getMessage();%0A                if (received.getBody() instanceof String) %7B%0A                    System.out.println(received.getBody());%0A                %7D else %7B%0A                    System.out.println(%22Unexpected body type: %22 + received.getBody());%0A                %7D%0A            %7D
 %0A   

Add some basic example code for a hello world type sample