, (int) timeout);
if (uninstallApplicationResponse.containsKey(CloudifyConstants.LIFECYCLE_EVENT_CONTAINER_ID)) {
String pollingID = uninstallApplicationResponse
.get(CloudifyConstants.LIFECYCLE_EVENT_CONTAINER_ID);
((RestAdminFacade) this.adminFacade)
<BUG>.waitForLifecycleEvents(pollingID, (int) timeout, TIMEOUT_ERROR_MESSAGE);
} else {</BUG>
publishEvent("Failed to retrieve lifecycle logs from rest. "
+ "Check logs for more details.");
}

, (int) timeout);
if (uninstallApplicationResponse.containsKey(CloudifyConstants.LIFECYCLE_EVENT_CONTAINER_ID)) {
String pollingID = uninstallApplicationResponse
.get(CloudifyConstants.LIFECYCLE_EVENT_CONTAINER_ID);
((RestAdminFacade) this.adminFacade)
.waitForLifecycleEvents(pollingID, (int) timeout);
} else {
publishEvent("Failed to retrieve lifecycle logs from rest. "
+ "Check logs for more details.");
