HttpSession session = request.getSession(true);
Messages localizedMessages = LocaleHandler.localizeMessages(request);
try {
if(userId==null || sharedDataKey==null || (serviceType==null && widgetId==null)){
throw new InvalidWidgetCallException();
}
}
catch (InvalidWidgetCallException ex) {
response.setStatus(HttpServletResponse.SC_BAD_REQUEST);
return;