"\n</playlists>";
if (log.isDebugEnabled()) {
log.debug(xml);
}
XMLElement response = XML.load(xml);
final XMLElement versionParentElement;
if (response.hasChild("confirm")) {
versionParentElement = response.getChild("confirm");
} else if (response.hasChild("")) {
versionParentElement = response;
} else {
throw new RuntimeException("Unknown server response:\n" + xml);
}
// <version>0000000007,0000000002,3701476273,0</version>
String[] versionTagValues = versionParentElement.getChildText("version").split(",", 4);
playlists.setRevision(Long.parseLong(versionTagValues[0]));
playlists.setChecksum(Long.parseLong(versionTagValues[2]));
if (playlists.getItems().size() != Long.parseLong(versionTagValues[1])) {