WSNHelper helper = WSNHelper.getInstance();
if (helper.supportsExtraClasses()) {
this.endpoint = helper.publish(address, this, extraClasses);
this.context = null;
} else {
this.endpoint = helper.publish(address, this);
if (extraClasses != null && extraClasses.length > 0) {
try {
this.context = JAXBContext.newInstance(extraClasses);
} catch (JAXBException e) {
throw new RuntimeException(e);