private ValidationResult validateForDupPath(final FsVolume volume) {
        final Path absPath = getAbsVolumePath(volume);
        final List<FsVolume> volumes = fsVolumeDao.getAll();
        // We need to get all, so we can make all the db one's absolute in the same was as our one
        final boolean foundDup = volumes.stream()
                .anyMatch(dbVol ->
                        !Objects.equals(dbVol.getId(), volume.getId())
                        && Objects.equals(getAbsVolumePath(dbVol), absPath));
        if (foundDup) {
            return ValidationResult.error(LogUtil.message(
                    "Another volume already exists with path '{}'", absPath));
        } else {
            return ValidationResult.ok();
        }
    }
Public for use in tests that tear down volumes
stroom-data/stroom-data-store-impl-fs/src/main/java/stroom/data/store/impl/fs/FsVolumeService.java