Repo found = this.getRepo(subject, repoId);
List<RepoSyncResults> syncResults = found.getSyncResults();
// Add the most recent sync results status
int latestIndex = syncResults.size() - 1;
if (!syncResults.isEmpty() && syncResults.get(latestIndex) != null) {
RepoSyncResults results = syncResults.get(latestIndex);
return results.getStatus().toString();
} else {
return ContentSyncStatus.NONE.toString();
}
}