} else {
moreStatus = false;
}
Collection<Status> statuses = new ArrayList<Status>();
for (Row<String, String, String> row : rows) {
AbstractStatus abstractStatus = statusRepository.findStatusById(row.getKey()); // This makes 2 calls to the same row
if (abstractStatus != null && // if a status has been removed, it is returned as null
abstractStatus.getType().equals(StatusType.STATUS)) { // Only index standard statuses
Status status = (Status) abstractStatus;
if (status.getStatusPrivate() == null || !status.getStatusPrivate()) {
statuses.add(status);
}