private String retrieveRemoteRepositoryLocation() throws MojoFailureException, MojoExecutionException {
CloudControlClient client = CloudControlSupport.createCloudControlClient();
ApplicationRequest applicationRequest = CloudControlSupport.createApplicationRequest(application);
ApplicationResponse applicationResponse = null;
try {
applicationResponse = client.send(applicationRequest);
if (applicationResponse.isError()) {
throw new MojoFailureException(applicationResponse.getContent());
}
} catch (CloudControlClientException ccce) {
throw new MojoExecutionException(ccce.getClass().getSimpleName(), ccce);
}
String remoteRepository = "git+";
remoteRepository += applicationResponse.getApplication().getRepository();
return remoteRepository;
}