public FsVolume getVolume(final String volumeGroupName) {
        final String volumeGroup;

        // Use the default volume group if null.
        if (volumeGroupName == null || volumeGroupName.isBlank()) {
            LOGGER.debug("Using default volume group");
            volumeGroup = volumeConfigProvider.get().getDefaultStreamVolumeGroupName();
        } else {
            volumeGroup = volumeGroupName;
        }

        return securityContext.insecureResult(() -> {
            // Can't call this in the ctor as it causes a circular dep problem with EntityEventBus
            ensureDefaultVolumes();

            final Set<FsVolume> set = getVolumeSet(volumeGroup, VolumeUseStatus.ACTIVE);
            if (!set.isEmpty()) {
                final FsVolume volume = set.iterator().next();
                LOGGER.trace("Using volume {}", volume);
                return volume;
            }
            return null;
        });
    }
@return An active and non-full volume selected by the configured volume selector
stroom-data/stroom-data-store-impl-fs/src/main/java/stroom/data/store/impl/fs/FsVolumeService.java