public void run(IAction action) {
   if (!(activeSelection.getParent() instanceof BaseGroupComponent)) {
     return;
   }
   IFile modelFile = ((BaseGroupComponent) activeSelection.getParent()).getFile();
   JMSListener listener = (JMSListener) activeSelection.getListener();
   try {
     listener.stop();
     JMSUtils.unsubscribe(listener);
     DataModelManager.getInstance().removeDestination(modelFile, activeSelection.getListener());
   } catch (Exception e) {
     MessageDialog.openError(
         Display.getDefault().getActiveShell(),
         "Failed to Unsubscribe the Listener.",
         e.getMessage());
   }
 }
 private boolean isDurableSubscriber() {
   if (activeSelection instanceof ListenerComponent) {
     return JMSUtils.isDurableSubscriber((JMSListener) activeSelection.getListener());
   }
   return false;
 }