title: Spring - Create bean in XML with reference to Java bean, and the other way around
body: <p>If I have a bean created in Java, with @Bean, how do I reference this bean in XML when creating a bean there?
  And if I have a bean created in XML, how do I reference this bean in Java when creating a bean there?</p>