File file = new File(cmd.getJarFile().getFilename());
mdc.getPipelineWriter().save(cmd.getJarFile().getId(), file.getName(), new FileInputStream(f));
}
if (cmd.getConfig() != null) {
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) {