PipelineConfiguration pipelineConfig = jsonReader.fromJson(cmd.getConfig());
List<Stage> stages = stageFactory.createStages(pipelineConfig);
MongoDBConnectionConfig conf = new MongoDBConnectionConfig(pipelineConfig.getPipelineName(), cmd.getHost(), "", "");
MongoConnector mdc =new MongoConnector(conf.getConfiguration());
mdc.connect();
Pipeline pipeline = mdc.getPipelineReader().getPipeline();
for (Stage stage : stages) {
if (cmd.getStageNames() != null) {
if (cmd.getStageNames().contains(stage.getName())) {