throws IntrospectionException {
org.apache.tuscany.sca.assembly.Reference reference = assemblyFactory.createReference();
JavaInterfaceContract interfaceContract = javaInterfaceFactory.createJavaInterfaceContract();
reference.setInterfaceContract(interfaceContract);
AllowsPassByReference pbr = element.getAnnotation(AllowsPassByReference.class);
if (pbr != null) {
reference.setAllowsPassByReference(true);
} else {
reference.setAllowsPassByReference(implementation.isAllowsPassByReference());
}