public BrowserVersion toBrowserVersion() {
        switch (this) {
        case CHROME:
            return BrowserVersion.CHROME;
        case FIREFOX_17:
            return BrowserVersion.FIREFOX_17;
        case INTERNET_EXPLORER_8:
            return BrowserVersion.INTERNET_EXPLORER_8;
        case INTERNET_EXPLORER_9:
            return BrowserVersion.INTERNET_EXPLORER_9;
        }
        return BrowserVersion.getDefault();
    }