if (playlists.getItems().size() != Long.parseLong(versionTagValues[1])) {
throw new RuntimeException("Size missmatch");
}
if (playlists.calculateChecksum() != playlists.getChecksum()) {
throw new ChecksumException(playlists.calculateChecksum(), playlists.getChecksum());
}
if (playlist.isCollaborative() != (Integer.parseInt(versionTagValues[3]) == 1)) {
throw new RuntimeException("Collaborative flag missmatch");
}