}
String deploymentQualifier = application + (deployment != null ? ":" + deployment + (commitId != null ? ":" + commitId : "") : "");
log.info("Deploying " + deploymentQualifier + " to CloudControl PaaS.");
CloudControlClient client = CloudControlSupport.createCloudControlClient();
UpdateDeploymentRequest request = CloudControlSupport.createUpdateDeploymentRequest(application, deployment, commitId);
UpdateDeploymentResponse response = null;
try {
response = client.send(request);
if (response.isError()) {
throw new MojoFailureException(response.getContent());
}
} catch (CloudControlClientException ccce) {