@Override
    public boolean isValueCompatible(FieldValue value) {
        var dt = value.getDataType();
        if (dt instanceof ReferenceDataType refType) {
            var docTypeName = refType.getTargetType().getName();
            return docTypeName.equals(target.getName());
        }
        return false;
    }
Model for ReferenceDataType which is more suitable when
we want to end up with NewDocumentType as target type.

@author arnej
config-model/src/main/java/com/yahoo/documentmodel/NewDocumentReferenceDataType.java