private static ImportedFieldsConfig.Attribute.Builder createAttributeBuilder(ImportedField field) {
        ImportedFieldsConfig.Attribute.Builder result = new ImportedFieldsConfig.Attribute.Builder();
        result.name(field.fieldName());
        result.referencefield(field.reference().referenceField().getName());
        result.targetfield(field.targetField().getName());
        return result;
    }
This class derives imported fields from search definition and produces imported-fields.cfg as needed by the search backend.

@author geirst
config-model/src/main/java/com/yahoo/schema/derived/ImportedFields.java