}
public Object getManagedObjectForRoute(CamelContext context, Route route) {
ManagedRoute mr;
if (route.supportsSuspension()) {
mr = new ManagedSuspendableRoute((ModelCamelContext)context, route);
} else {
mr = new ManagedRoute((ModelCamelContext)context, route);
}
mr.init(context.getManagementStrategy());
return mr;