// initialize to original scaling group (without liveness tracking)
this.scalingGroup = this.wrappedScalingGroup;
// decorate scaling group with liveness checking if configured
if (config().getLiveness() != null) {
LivenessTracker livenessTracker = new NotifyingLivenessTracker(
this.livenessTestFactory, this.eventBus,
this.executorService);
livenessTracker.configure(config().getLiveness());
int livenessCheckPeriod = config().getLiveness().getRunTimeCheck()
.getPeriod();
this.scalingGroup = new LivenessTrackingScalingGroup(
this.scalingGroup, livenessTracker, this.executorService,
livenessCheckPeriod);