System.err.println("Unable to deploy Caldecott server app: " + e.getMessage());
throw e;
}
if (!serverApp.getState().equals(CloudApplication.AppState.STARTED)) {
System.out.println("Starting Caldecott server app");
client.startApplication(serverApp.getName());
}
while (vcap_service == null) {
System.out.println("You have the following services defined:");
List<CloudService> services = client.getServices();