class EnvironmentUtils {

  public synchronized String getBrowserName() {
    final String userAgent = getUserAgent();
    if ( userAgent == null ) {
      return "";
    }
    if ( userAgent.contains( WINDOWS_BROWSER ) ) {
      return WINDOWS_BROWSER;
    } else if ( userAgent.contains( UBUNTU_BROWSER ) ) {
      return UBUNTU_BROWSER;
    } else if ( userAgent.contains( MAC_BROWSER ) ) {
      return MAC_BROWSER;
    }
    return "";
  }

}