factoryBean simplifed