}
@Override
public Map<String, String> getCrashLogs(String appName) {
String urlPath = getFileUrlPath();
CrashesInfo crashes = getCrashes(appName);
if (crashes.getCrashes().isEmpty()) {
return Collections.emptyMap();
}
TreeMap<Date, String> crashInstances = new TreeMap<Date, String>();
for (CrashInfo crash : crashes.getCrashes()) {
crashInstances.put(crash.getSince(), crash.getInstance());
}
String instance = crashInstances.get(crashInstances.lastKey());
return doGetLogs(urlPath, appName, instance);
}