public Repository addRepository(String name,
                                    String url) {
        Repository repository = new Repository(name, url);
        repositories.add(repository);
        return repository;
    }
public Repository addRepository ( String name , String url ) { Repository repository = new Repository ( name , url ) ; repositories . add ( repository ) ; return repository ; }
Adds a repository to the list.

@param name a {@code non-null} string, the name of the repository.
@param url  a {@code non-null} string, the absolute url to the repository
@return a {@link Repository} instance.