try to simulate cxf factoryBean behaviour