assure that Pane checks for session and window object type, Window checks for session type