/**
   * update storage summary with binaries repositories
   *
   * @param storageSummaryModel - storageSummary Model
   */
  private void updateFileStoreSummary(StorageSummaryImpl storageSummaryModel) {

    StorageService storageService = ContextHelper.get().beanForType(StorageService.class);

    FileStoreStorageSummary fileStoreSummaryInfo = storageService.getFileStoreStorageSummary();
    FileStoreSummary fileStoreSummary = new FileStoreSummary();
    fileStoreSummary.setStorageType(fileStoreSummaryInfo.getBinariesStorageType().toString());
    List<File> binariesFolders = fileStoreSummaryInfo.getBinariesFolders();
    String storageDirLabel = "Filesystem storage is not used";
    if (binariesFolders != null && !binariesFolders.isEmpty()) {
      storageDirLabel =
          String.join(
              ", ",
              binariesFolders.stream().map(File::getAbsolutePath).collect(Collectors.toList()));
    }
    fileStoreSummary.setStorageDirectory(storageDirLabel);
    fileStoreSummary.setTotalSpace(
        StorageUnit.toReadableString(fileStoreSummaryInfo.getTotalSpace()));
    fileStoreSummary.setUsedSpace(
        StorageUnit.toReadableString(fileStoreSummaryInfo.getUsedSpace())
            + " ("
            + NumberFormatter.formatPercentage(fileStoreSummaryInfo.getUsedSpaceFraction())
            + ")");
    fileStoreSummary.setFreeSpace(
        StorageUnit.toReadableString(fileStoreSummaryInfo.getFreeSpace())
            + " ("
            + NumberFormatter.formatPercentage(fileStoreSummaryInfo.getFreeSpaceFraction())
            + ")");
    storageSummaryModel.setFileStoreSummary(fileStoreSummary);
  }