class RepositoryServiceImpl implements RepositoryService {

    protected String createFreshRepositoryAlias(final String alias,
                                                final Space space) {
        int index = 0;
        String suffix = "";
        while (configuredRepositories.getRepositoryByRepositoryAlias(space,
                                                                     alias + suffix,
                                                                     true) != null) {
            suffix = "-" + ++index;
        }

        return alias + suffix;
    }

    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);

}