File f;
while( (f=miner.next()) != null) {
try {
if (f.getName().matches(".*[mM][pP]3")) {
SongData songData = new SongData(f);
Song song = songManager.saveSong(songData);
log.debug("Saved: " + song.getName() + " ("+song.getId() +")"+
", " + song.getAlbum().getName() + "("+song.getAlbum().getId()+")"+
", " + song.getArtist().getName() + "("+song.getArtist().getId()+")"+
", " + song.getGenre().getName() + "("+song.getGenre().getId()+")" );
}
} catch (SongDataException sdE) {
log.error("Could not process file: " +f.getAbsolutePath());
}
}