// }
lifecycleState = STOPPED;
}
protected InstanceWrapper getInstanceWrapper(boolean create) throws TargetResolutionException {
InstanceWrapper ctx = wrappers.get(Thread.currentThread());
if (ctx == null && !create) {
return null;
}
if (ctx == null) {
ctx = super.createInstanceWrapper();
ctx.start();
wrappers.put(Thread.currentThread(), ctx);
}
return ctx;
}