private Injector createReferenceInjector(String refName, List<SourceWireFactory> wireFactories, boolean multiplicity) {
Class refClass = wireFactories.get(0).getBusinessInterface(); //reference.getPort().getServiceContract().getInterface();
// iterate through the targets
List<ObjectFactory> objectFactories = new ArrayList<ObjectFactory>();
for (SourceWireFactory wireFactory : wireFactories) {
objectFactories.add(new ProxyObjectFactory(wireFactory));
}
return createInjector(refName, refClass, multiplicity, objectFactories, fields, methods);
}