public Pipeline wrapBuildDetails(JobInstance job) {
        Stage stageForBuild = stageService.getStageByBuild(job.getId());
        stageForBuild.setJobInstances(new JobInstances(job));

        Pipeline pipeline = pipelineDao.pipelineWithMaterialsAndModsByBuildId(job.getId());
        pipeline.setStages(new Stages(stageForBuild));
        return pipeline;
    }
public Pipeline wrapBuildDetails ( JobInstance job ) { Stage stageForBuild = stageService . getStageByBuild ( job . getId ( ) ) ; stageForBuild . setJobInstances ( new JobInstances ( job ) ) ; Pipeline pipeline = pipelineDao . pipelineWithMaterialsAndModsByBuildId ( job . getId ( ) ) ; pipeline . setStages ( new Stages ( stageForBuild ) ) ; return pipeline ; }
@deprecated this is evil and should be removed