parameters.put("genres", new Mp3Genres().asList());
merge("albummetadata/edit.freemarker", parameters, response.getWriter());
}
private void common(Map<String, Object> parameters) {
DirectoriesModel model = new DirectoriesModel("music/"+parameters.get("directory"));
File directory = model.getDirectory();
String parent = new File(directory.getParent()).getName();
List<File> files = new ItemsModel("music/"+parameters.get("directory"),"", Extension.mp3.toString()).asList();
List<Mp3> mp3s = new FileMp3Converter().convert(files);
String artist = value(mp3s, parent, new ArtistCallDispatcher());
String album = value(mp3s, directory.getName(), new AlbumCallDispatcher());