inspectorLifecycle = Adaptable.Factory.getAdapter(delegate, Lifecycle.class, null);
if (inspectorLifecycle == null) {
ProgressSupport ph = Adaptable.Factory.getAdapter(delegate, ProgressSupport.class, null);
CancelSupport cs = Adaptable.Factory.getAdapter(delegate, CancelSupport.class, null);
if (cs != null || ph != null) {
lifecycleStub = new LifecycleBridge(ph, cs);
} else {
lifecycleStub = null;
}
} else {
lifecycleStub = null;