code: @Override
      public Long getRepositorySize() {
          try {
  
              LOGGER.debug("Calculating repository size from index");
              final Repository repo = getJcrRepository(repository);
  
              // Differentiating between the local getRepositorySize and
              // ServiceHelpers
              return ServiceHelpers.getRepositorySize(repo);
          } catch (final RepositoryException e) {
              throw new RepositoryRuntimeException(e);
          }
      }
docs: Calculate the total size of all the binary properties in the repository
  
  @return size in bytes