def create(self, name, pipeline_definition): project_repository = ProjectRepository() pipeline = Pipeline() pipeline.name = name pipeline.load_pipeline_items(pipeline_definition, project_repository.get_all_as_dictionary()) return pipeline