class RepositoryServiceImpl implements RepositoryService {

    @Override
    public void updateContributors(final Repository repository,
                                   final List<Contributor> contributors) {
        Optional<org.guvnor.structure.organizationalunit.config.RepositoryInfo> thisRepositoryConfig = findRepositoryConfig(repository.getSpace().getName(),
                                                                                                                            repository.getAlias());

        if (!thisRepositoryConfig.isPresent()) {
            throw new IllegalArgumentException("Repository " + repository.getAlias() + " not found");
        }

        thisRepositoryConfig.ifPresent(config -> {
            config.getConfiguration().add("contributors",
                                          contributors);
            this.saveRepositoryConfig(repository.getSpace().getName(),
                                      config);
            repositoryContributorsUpdatedEvent.fire(new RepositoryContributorsUpdatedEvent(getRepositoryFromSpace(repository.getSpace(),
                                                                                                                  repository.getAlias())));
        });
    }

    public  RepositoryServiceImpl();
    @Inject public  RepositoryServiceImpl(@Named("ioStrategy") final IOService ioService,
                                 final GitMetadataStore metadataStore,
                                 final ConfigurationService configurationService,
                                 final OrganizationalUnitService organizationalUnitService,
                                 final ConfigurationFactory configurationFactory,
                                 final RepositoryFactory repositoryFactory,
                                 final Event<NewRepositoryEvent> event,
                                 final Event<RepositoryRemovedEvent> repositoryRemovedEvent,
                                 final BackwardCompatibleUtil backward,
                                 final ConfiguredRepositories configuredRepositories,
                                 final AuthorizationManager authorizationManager,
                                 final User user,
                                 final SpacesAPI spacesAPI,
                                 final SpaceConfigStorageRegistry spaceConfigStorage,
                                 final Event<RepositoryContributorsUpdatedEvent> repositoryContributorsUpdatedEvent,
                                 final PasswordService secureService);

}