GitSystem.createAndAddService();
LocalRepositoryService localRepositoryService =
LocalRepositoryService.createAndAddService();
RepositorySpi localRepository = localRepositoryService.getRepositorySpi();
AbstractRepository repository = createRepository(localRepository);
RepositoryService.createAndAddService(repository);
}