@Override
public void handleEvent(Event ev, AbstractServiceFactoryBean factory, Object... args) {
if (ev.equals(Event.START_CREATE)) {
// Remove original URIDomainExpressionBuilder to be replaced on custom one
ExtensionManagerImpl orig = (ExtensionManagerImpl)factory.getBus().getExtension(ExtensionManager.class);
List<String> names = new ArrayList<String>();
names.add(org.apache.cxf.ws.policy.attachment.external.URIDomainExpressionBuilder.class.getName());
((ExtensionManagerImpl)orig).removeBeansOfNames(names);
}
}