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