> I was looking for a way to add beans to the context programmatically, but > I didn't see anything. Guessing : ((ConfigurableApplicationContext) flowDefinition.getApplicationContext()).getBeanFactory().registerSingleton ...