private ImmutableSDField getTargetField(TemporaryImportedField importedField,
                                            DocumentReference reference) {
        String targetFieldName = importedField.targetFieldName();
        Schema targetSchema = reference.targetSearch();
        ImmutableSDField targetField = targetSchema.getField(targetFieldName);
        if (targetField == null) {
            fail(importedField, targetFieldAsString(targetFieldName, reference) + ": Not found");
        }
        return targetField;
    }
Iterates all imported fields from schema parsing and validates and resolves them into concrete fields from referenced document types.

@author geirst
config-model/src/main/java/com/yahoo/schema/processing/ImportedFieldsResolver.java