JavaMappedReference referenceDefiniton = references.get(referenceName);
Class interfaze = referenceDefiniton.getServiceContract().getInterfaceClass();
OutboundWire wire;
if (referenceDefiniton.isAutowire()) {
boolean required = referenceDefiniton.isRequired();
wire = new SystemOutboundAutowire(referenceName, interfaze, parent, required);
} else {
//FIXME support multiplicity!
assert target.getTargets().size() == 1 : "Multiplicity not yet implemented";
QualifiedName targetName = new QualifiedName(target.getTargets().get(0).getPath());
wire = new SystemOutboundWireImpl(referenceName, targetName, interfaze);