logger.trace("Uploading song for DJ {} and broadcast {}", dj, broadcast);
if (getHowManySongsDjCanSubmit(dj, broadcast,
getSongsForBroadcast(dj, broadcast)) <= 0) {
logger.info("DJ {} is trying to upload too many songs", dj);
throw new JizzTooManySongsException("DJ " + dj
+ " is trying to upload too many songs");
}
if (broadcast.isFinalised()) {
logger.info("DJ {} is trying to upload to a finalised broadcast",
dj);
throw new JizzTooManySongsException("DJ " + dj
+ " is trying to upload to a finalised broadcast "
+ broadcast);
}
logger.trace("Committing blob for song");