WebResource webResource = client.resource(restEndpointUrl + String.format("/containers/%s/start", containerId));
try {
LOGGER.trace("POST: {}", webResource);
Builder builder = webResource.accept(MediaType.TEXT_PLAIN);
if (hostConfig != null) {
builder.type(MediaType.APPLICATION_JSON).post(hostConfig);
} else {
builder.post((HostConfig) null);
}
} catch (UniformInterfaceException exception) {
if (exception.getResponse().getStatus() == 404) {
throw new NotFoundException(String.format("No such container %s", containerId));
} else if (exception.getResponse().getStatus() == 204) {