It seems to be assumed that every HTTP request will
contain an Accept-Language header. Although browsers
generally do send such a header, I do not think that it is
guaranteed.
LanguageShuntFactory ought to check for null and to
use the view in the default mode, in the case of null.
This is the offending line: -
String wholeHeader = request.getHeader("Accept-
Language").toLowerCase();