return (Session)sessionPane.getComponentAt(index);
if (hideTabBar && sessionPane.getTabCount() == 0) { for (int x=0; x < this.getContentPane().getComponentCount(); x++) {  if (this.getContentPane().getComponent(x) instanceof Session) { return (Session)getContentPane().getComponent(x); } } return null; } else return (Session)sessionPane.getComponentAt(index);
   public Session getSessionAt( int index) {      return (Session)sessionPane.getComponentAt(index);   }