code: public boolean matchUserAgent(String userAgent) {
      if (anyAgent) return true;
      if (!anyAgent && userAgent==null) return false;
      return userAgents.stream().anyMatch(agent->agent.equalsIgnoreCase(userAgent));
    }
docs: Checks if the section is applicable for a given user agent.
  @param userAgent requested user agent
  @return <code>true</code> if the section is applicable for the requested user agent