@Override
    public int compareTo(final DocRef o) {
        int diff = type.compareTo(o.type);

        if (diff == 0) {
            if (name != null && o.name != null) {
                diff = name.compareTo(o.name);
            }
        }
        if (diff == 0) {
            diff = uuid.compareTo(o.uuid);
        }
        return diff;
    }
@return The name of the 'document' being referenced
stroom-legacy/stroom-legacy-model_6_1/src/main/java/stroom/legacy/model_6_1/DocRef.java