URL url = config.resolveURL(String.format("apps/%s/services/%s/runnables/%s/logs?start=%d&stop=%d",
appId, serviceId, runnableId, start, stop));
HttpResponse response = restClient.execute(HttpMethod.GET, url, config.getAccessToken(),
HttpURLConnection.HTTP_NOT_FOUND);
if (response.getResponseCode() == HttpURLConnection.HTTP_NOT_FOUND) {
throw new NotFoundException("application or service or runnable", appId + "/" + serviceId + "/" + runnableId);
}
return new String(response.getResponseBody(), Charsets.UTF_8);
}