public void configure(Binder binder) {
ComponentRegistry registry = new GuiceComponentRegistry(binder, Multibinder.newSetBinder(binder, StereotypeHandler.class));
BasicConfiguration config = new BasicConfiguration(context);
// using the new vraptor.scan
WebAppBootstrap webAppBootstrap = new WebAppBootstrapFactory().create(config);
webAppBootstrap.configure(registry);
// call old-style custom components registration
registerCustomComponents(registry);
}
};