public ServiceBuilder withContainerManager(Function<ComponentSetup, SegmentContainerManager> segmentContainerManagerCreator) {
        Preconditions.checkNotNull(segmentContainerManagerCreator, "segmentContainerManagerCreator");
        this.segmentContainerManagerCreator = segmentContainerManagerCreator;
        return this;
    }
public ServiceBuilder withContainerManager ( Function < ComponentSetup , SegmentContainerManager > segmentContainerManagerCreator ) { Preconditions . checkNotNull ( segmentContainerManagerCreator , "segmentContainerManagerCreator" ) ; this . segmentContainerManagerCreator = segmentContainerManagerCreator ; return this ; }
Attaches the given SegmentContainerManager creator to this ServiceBuilder. The given Function will only not be invoked
right away; it will be called when needed.

@param segmentContainerManagerCreator The Function to attach.
@return This ServiceBuilder.