public PipelineGroups getLocal() {
        PipelineGroups locals = new PipelineGroups();
        for (PipelineConfigs pipelineConfigs : this) {
            PipelineConfigs local = pipelineConfigs.getLocal();
            if (local != null)
                locals.add(local);
        }
        return locals;
    }
@Test
    public void shouldGetLocalPartsWhenOriginIsRepo() {
        PipelineConfigs defaultGroup = createGroup("defaultGroup", createPipelineConfig("pipeline1", "stage1"));
        defaultGroup.setOrigins(new RepoConfigOrigin());
        PipelineGroups groups = new PipelineGroups(defaultGroup);
        assertThat(groups.getLocal().size(), is(0));
        assertThat(groups.getLocal().isEmpty(), is(true));
    }