public ActionAwareConsumerConnection(
     ConnectionVersion4 delegate, ModelMapping modelMapping, ProtocolToModelAdapter adapter) {
   super(delegate, getVersionDetails(delegate.getMetaData().getVersion()));
   ModelProducer modelProducer =
       new ModelBuilderBackedModelProducer(
           adapter, getVersionDetails(), modelMapping, (ModelBuilder) delegate);
   if (!getVersionDetails().maySupportModel(BuildInvocations.class)) {
     modelProducer =
         new BuildInvocationsAdapterProducer(adapter, getVersionDetails(), modelProducer);
   }
   this.modelProducer = modelProducer;
   this.actionRunner =
       new InternalBuildActionExecutorBackedActionRunner((InternalBuildActionExecutor) delegate);
 }
 public String getDisplayName() {
   return delegate.getMetaData().getDisplayName();
 }
 public void stop() {
   delegate.stop();
 }