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

        if (type != null && o.type != null) {
            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-docref/src/main/java/stroom/docref/DocRef.java