if (deployUnpause.isPresent()) {
queryParams.add(Pair.of("deployUnpause", Boolean.toString(deployUnpause.get())));
}
HttpResponse response = post(requestUri, String.format("new deploy %s", new SingularityDeployKey(requestId, pendingDeploy.getId())),
Optional.of(new SingularityDeployRequest(pendingDeploy, user, deployUnpause)), Optional.<String> absent());
return getAndLogRequestAndDeployStatus(response.getAs(SingularityRequestParent.class));
}