title: How to Get ViewModel From SelectedTab in ZK?
body: <p>I have a toolBar where i am using plenty of item now when i am clicking on any item i am creating a tab.Something like this code</p>
  
  <pre><code>public static void openNewTab(String title, String path, Tabbox mainTab) {
      Tab tab = new Tab(title);
      tab.setClosable(true);
      tab.setParent(mainTab.getTabs());
      Tabpanel tabpanel = new Tabpanel();
      Include include = new Include(path);
      include.setParent(tabpanel);
      tabpanel.setParent(mainTab.getTabpanels());
      mainTab.setSelectedTab(tab);
  }
  </code></pre>
  
  <p>Now i will want to get the ViewModel of selected tab When any Ctrl Key press in ZUL...
  I have this </p>
  
  <pre><code>@Wire("#mainTab")
  Tabbox mainTab;
     Tab tab = mainTab.getSelectedTab( );
  </code></pre>
  
  <p>Can it possible to get ViewModel from the selectedTab varaibles?</p>
  
  <p>And i am doing like this </p>
  
  <pre><code>Include include = new Include(path);
  include.setParent(tabpanel);
  Object object = include.getAttribute("viewModel");
  </code></pre>
  
  <p>Now object is giving null Can we get ViewModel from here while i am including a ZUl here?</p>