@Override
  public void refresh(ManagedBean mbean) {
    ServerRegistry serverRegistry = ApplicationRegistry.getServerRegistry(MBeanView.getServer());
    _queues = serverRegistry.getQueues(MBeanView.getVirtualHost());
    _exchanges = serverRegistry.getExchanges(MBeanView.getVirtualHost());

    _queueTableViewer.setInput(_queues);
    _exchangeTableViewer.setInput(_exchanges);

    layout();
  }
  private void openMBean(Table table) {
    int selectionIndex = table.getSelectionIndex();

    if (selectionIndex == -1) {
      return;
    }

    ManagedBean selectedMBean = (ManagedBean) table.getItem(selectionIndex).getData();

    IWorkbenchWindow window = PlatformUI.getWorkbench().getActiveWorkbenchWindow();
    MBeanView view = (MBeanView) window.getActivePage().findView(MBeanView.ID);
    try {
      view.openMBean(selectedMBean);
    } catch (Exception ex) {
      MBeanUtility.handleException(selectedMBean, ex);
    }
  }