public void destroy() throws RemoteException {
   if (this.xs != null) {
     xs.stop();
     WseMsgBrokerClient client = new WseMsgBrokerClient();
     client.init(this.brokerURL);
     try {
       client.unSubscribe(this.subscriptionID);
     } catch (MsgBrokerClientException e) {
       logger.error(
           "axisFault occured on unsubscribing subscription ID :" + this.subscriptionID, e);
       e.printStackTrace();
     }
   } else if (this.messageBoxNotificationHandler != null) {
     this.messageBoxNotificationHandler.destroy(messageBoxEPR);
   }
 }