void (String deploymentName, LogPipeProvider provider) { ArrayList<LogPipeBase> pipes = new ArrayList<>(provider.createLogPipes(deploymentName)); myDeploymentName2ActiveLogPipes.put(deploymentName, pipes); for (LogPipeBase pipe : pipes) { pipe.open(); } }