private boolean browserMatches() {
if (browserMatch.isEmpty()) {
// Not browser-sensitive.
return true;
}
UserAgent ua = uaProvider.get();
List<VersionMatcher> versionMatchers = browserMatch.get(ua.getBrowser());
if (versionMatchers != null) {
for (VersionMatcher matcher : versionMatchers) {
if (matcher.matches(ua.getVersion())) return true;
}
}
return false;
}