NotificationBroker notificationBroker
= new NotificationBroker("http://localhost:" + wsnPort + "/wsn/NotificationBroker",Email.class);
Subscription subscription = notificationBroker.subscribe(consumer, topic);
// Create new email object to send
Email mail = new Email("standalone@client.com","you@gotmail.com","This is the standalone client speaking","This thing works!");
// Send a notification on the Topic
notificationBroker.notify(topic,mail);
// Just sleep for a bit to make sure the notification gets delivered