address = factory.createComponentAddress(advertiser.getEndpointReference());
reporter.setAddress(address);
event.setReporter(reporter);
Situation situation = factory.createSituation();
situation.setCategoryType(situationCategory);
event.setSituation(situation);
NotificationProducer wsn = (NotificationProducer)advertiser.getCapability(WsnConstants.PRODUCER_URI);
wsn.publish(topicName, event.toXML());
}