@Override
    public boolean equals(Object obj) {
        if (obj == null) return false;
        if (obj == this) return true;
        if (!(obj instanceof DocumentImpl)) return false;

        return ((DocumentImpl) obj).file.equals(file);
    }