} catch (Exception e) {
throw new ServletException("json : could not register all serializers", e);
}
// register the controller object
CommandDispatcher commandDispatcher = applicationContext.getBean("command.CommandDispatcher",
CommandDispatcher.class);
if (null == commandDispatcher) {
throw new ServletException(
"Cannot find CommandDispatcher, the org.geomajas.internal.global.GeomajasContextListener "
+ "was probably not registered.");