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());
}