protected static SearchQuery getSearchQuery(GroupedInteraction g) {
    SearchQuery sq = null;
    if (InteractionUtil.isBrowser(g.getApplication())) {
      String title = g.getTitle();
      int index = title.indexOf(" - Google Search");
      if (index >= 0) {
        sq = new SearchQuery();
        sq.setQuery(title.substring(0, index));
        sq.setEngine("Google");
        sq.setApplication(g.getApplication());
        return sq;
      } else {
        index = title.indexOf("_°Ù¶ÈËÑË÷");
        if (index >= 0) {
          sq = new SearchQuery();
          sq.setQuery(title.substring(0, index));
          sq.setEngine("Baidu");
          sq.setApplication(g.getApplication());
          return sq;
        }
      }
    }

    return sq;
  }