JInternalFrame[] frames = desktop.getAllFrames();  return (Session)frames[index].getContentPane();
JInternalFrame[] frames = (JInternalFrame[])desktop.getAllFrames(); Session s = (Session)frames[index].getContentPane(); return s;
   public Session getSessionAt( int index) {      JInternalFrame[] frames = desktop.getAllFrames();      return (Session)frames[index].getContentPane();   }