FactoryBean mechanism considered