continue;
}
Class<?> reference = field.getType();
ComponentReferenceModel referenceModel = new V1ComponentReferenceModel(switchyardNamespace.uri());
InterfaceModel interfaceModel = new V1InterfaceModel(InterfaceModel.JAVA);
if (field.getAnnotation(Reference.class) != null) {
Reference ref = field.getAnnotation(Reference.class);
if (ref.value() == null || "".equals(ref.value())) {
referenceModel.setName(reference.getSimpleName());
} else {
QName qname = QName.valueOf(ref.value());
referenceModel.setName(qname.getLocalPart());
}
} else {
referenceModel.setName(reference.getSimpleName());
}
referenceModel.setInterface(interfaceModel);
interfaceModel.setInterface(reference.getCanonicalName());
// Add policy requirements to reference if specified
Requires refRequires = field.getAnnotation(Requires.class);
if (refRequires != null) {
for (SecurityPolicy secPolicy : refRequires.security()) {
if (!secPolicy.supports(PolicyType.INTERACTION)) {