@classmethod
def mainWindow(cls):
    """
        Class method to get a reference to the main window.
        
        @return reference to the main window (WebBrowserWindow)
        """
    if cls.BrowserWindows:
        return cls.BrowserWindows[0]
    else:
        return None
