int index = 0;
for ( BackupMetaData metaData : availableBackups )
{
exhibitor.getLog().add(ActivityLog.Type.INFO, String.format("Index Build: indexing backup log %d of %d", ++index, availableBackups.size()));
BackupStream backupStream = exhibitor.getBackupManager().getBackupStream(metaData);
if ( backupStream != null )
{
try
{
builder.add(backupStream.getStream());
}
finally
{
Closeables.closeQuietly(backupStream);
}