while( (f=miner.next()) != null) {
if (f.getName().matches(".*[mM][pP]3")) {
if (!finalSongManager.songIsInDb(f)) {
try {
SongData songData = new SongData(f);
Song song = finalSongManager.saveSong(songData);
log.debug("Added: " + song.getName() + " ("+song.getId() +")"+
", " + song.getAlbum().getName() +
", " + song.getArtist().getName() +
", " + song.getGenre().getName());
} catch (SongDataException sdE) {
log.error("Could not process file: " +f.getAbsolutePath() + ": "+ sdE.getMessage());
} catch (Exception e) {
log.error("Generic exception while building database: ", e);
}