// shall move flowControl to thread-local state.
if (flowControl != null) {
throw new ConcurrentModificationException("HgBundle is in use and not thread-safe yet");
}
flowControl = new Lifecycle.BasicCallback();
final Lifecycle lifecycle = Adaptable.Factory.getAdapter(inspector, Lifecycle.class, null);
if (lifecycle != null) {
lifecycle.start(-1, flowControl, flowControl);
}
return lifecycle;
}