public static BrowserVersionEnum valueOf(BrowserVersion browserVersion) {
        if (BrowserVersion.CHROME.equals(browserVersion)) {
            return CHROME;
        } else if (BrowserVersion.FIREFOX_17.equals(browserVersion)) {
            return FIREFOX_17;
        } else if (BrowserVersion.INTERNET_EXPLORER_8.equals(browserVersion)) {
            return INTERNET_EXPLORER_8;
        } else if (BrowserVersion.INTERNET_EXPLORER_9.equals(browserVersion)) {
            return INTERNET_EXPLORER_9;
        }
        throw new IllegalArgumentException(String.format(
                "Browser version '%s' cannot be recognized.",
                browserVersion.getApplicationCodeName()));
    }