if (nodeMetadata.getStatus().equals(NodeMetadata.Status.TERMINATED)) {
throw new CommandNotAllowedException("You cannot reboot a terminated node.");
}
EventId eventId;
if (client.rebootEC2Instance(jcloudsNodeId)) {
eventId = EventId.CLOUD_INVENTORY_ITEM_REBOOT;
} else {
// TODO: Handle this issue but it can be a false positive if the time it takes surpasses the time we wait