newMatch.setClassScore(clresult);
if(newMatch.getTitle().equals("Tie You Up (The Pain Of Love)"))
log.log(Level.INFO, String.format("Tie You Up (The Pain Of Love) match %f", newMatch.getScore()));
if(matches.size() < 10) {
matches.add(newMatch);
Collections.sort(matches, new MatchComparator());
}
else {
matches.add(newMatch);
Collections.sort(matches, new MatchComparator());
matches.remove(10);
}
idx++;
}
log.log(Level.INFO, "Search end");