Miner miner = new Miner("test/data/mp3");
File f;
while( (f=miner.next()) != null) {
try {
if (f.getName().matches(".*[mM][pP]3")) {
SongData songData = new SongData(f);
Album album = albumDao.getAlbum(songData.getAlbum());
Artist artist = artistDao.getArtist(songData.getArtist());
Genre genre = genreDao.getGenre(songData.getGenre());
Song song = new Song(songData.getName(), songData.getPath(), songData
.getTrack(), album, artist, genre);
songDao.saveSong(song);
// log.debug("Saved: " + song.getName() + " ("+song.getId() +")"+
// ", " + song.getAlbum().getName() +
// ", " + song.getArtist().getName() +