try {
Set<Class<?>> controllerClasses = scanControllerClasses();
Map<String, EntityMarshaller> entityMarshallers = scanEntityMarshallers();
ControllerDatabase controllerDatabase =
new MappedControllerDatabase(controllerClasses, new TreeRouter(),
entityMarshallers);
context.setAttribute(ControllerDatabase.KEY, controllerDatabase);
} catch (Throwable e) {
logger.error("error creating ControllerDatabase", e);