private void retrieveTracks(final UpdateInfo updateInfo, final long fromTime, final String tracksType) throws Exception {
int page = 0;
do {
JSONObject tracks = getTracks(updateInfo, fromTime, System.currentTimeMillis(), page, tracksType);
JSONObject tracksObject = tracks.getJSONObject(tracksType);
if (tracksObject.containsKey("track") && (tracksObject.get("track") instanceof JSONArray
|| tracksObject.get("track") instanceof JSONObject))
apiDataService.cacheApiDataJSON(updateInfo, tracks, -1, -1);
else
return;
final JSONObject metadata = tracksObject.getJSONObject("@attr");