@Override
    public boolean equals(Object rhs) {
        if (rhs instanceof NewDocumentReferenceDataType other) {
            return super.equals(other) && (temporary == other.temporary) && target.equals(other.target);
        }
        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