[CXF-5879]: Distinguishing client or service in FactoryBeanListener