}
if (results == null) {
// Get the match and store the list of properties and
// values in the context and session.
Match match = getActiveProvider(
request.getServletContext()).match(request);
if (match != null) {
// Allow other feautre detection methods to override
// priofiles.
ProfileOverride.override(request, match);
// Store the match results for future checks during the same
// request.
if (session != null) {
session.setAttribute(RESULT_ATTIBUTE, match.getResults());
}
request.setAttribute(RESULT_ATTIBUTE, match.getResults());
results = match.getResults();
}
}
}
}
} else if (session != null) {