Collections.shuffle(pieces);
logger.info("Found " + pieces.size() + " eligible pieces");
int persisted = 0;
for (Piece piece : pieces) {
if (piece.getLikes() < 3 && piece.getLikes() > -3) {
FeedEntry entry = new FeedEntry();
entry.setInclusionTime(now);
entry.setPiece(piece);
dao.persist(entry);
persisted++;
}
if (persisted == 2) {
break;