logger.info("Found containers: " + containerIdsOfService);
}
Map<String, String> undeployServiceResponse = adminFacade.undeploy(getCurrentApplicationName(), serviceName, timeoutInMinutes);
if (undeployServiceResponse.containsKey(CloudifyConstants.LIFECYCLE_EVENT_CONTAINER_ID)){
String pollingID = undeployServiceResponse.get(CloudifyConstants.LIFECYCLE_EVENT_CONTAINER_ID);
<BUG>this.adminFacade.waitForLifecycleEvents(pollingID, timeoutInMinutes, TIMEOUT_ERROR_MESSAGE);
} else {</BUG>
throw new CLIException("Failed to retrieve lifecycle logs from rest. " +
"Check logs for more details.");
}

logger.info("Found containers: " + containerIdsOfService);
}
Map<String, String> undeployServiceResponse = adminFacade.undeploy(getCurrentApplicationName(), serviceName, timeoutInMinutes);
if (undeployServiceResponse.containsKey(CloudifyConstants.LIFECYCLE_EVENT_CONTAINER_ID)){
String pollingID = undeployServiceResponse.get(CloudifyConstants.LIFECYCLE_EVENT_CONTAINER_ID);
boolean waitForLifecycleEvents = this.adminFacade.waitForLifecycleEvents(pollingID, timeoutInMinutes);
if (!waitForLifecycleEvents) {
throw new TimeoutException(TIMEOUT_ERROR_MESSAGE);
}
} else {
throw new CLIException("Failed to retrieve lifecycle logs from rest. " +
"Check logs for more details.");
}
