//the real main app context has a link to the parent context
ctx.setParent(parent);
ctx.register(MyAppSpringConfiguration.class);
ctx.refresh();
ctx.registerShutdownHook();
ctx.start();
//now that Spring is started, let's get all the beans that matter into DropWizard
//health checks
Map<String, HealthCheck> healthChecks = ctx.getBeansOfType(HealthCheck.class);