allow @MCAttribute to define bean references
made Router.beanFactory non-static