throws HandlerException {
Iterator<AcceptHeaderEntry> iterator = request.getAccept();
while (iterator.hasNext()) {
AcceptHeaderEntry element = iterator.next();
MediaRange range = element.getRange();
if (range.match(htmlType)) {
return true;
}
if (range.match(xmlType)) {
return false;
}