if (!context.getStatus().isStarted()) {
throw new IllegalArgumentException("CamelContext is not started");
}
if (service instanceof SuspendableService) {
SuspendableService ss = (SuspendableService) service;
ss.resume();
} else {
throw new UnsupportedOperationException("resume() is not a supported operation");
}
}