private void getInfoFromUserAgent(String userAgentString) throws IOException, ParseException {
    final UserAgentParser parser = new UserAgentService().loadParser();
    final Capabilities capabilities = parser.parse(userAgentString);
    this.os = capabilities.getPlatform();
    this.osVersion = capabilities.getPlatformVersion();
  }
Gets info from user agent.

@param userAgentString the user agent string
@throws IOException the io exception
@throws ParseException the parse exception
KITE-WPT-Test/src/main/java/org/webrtc/kite/wpt/RunInfo.java