public RepositoryMetaData repository(String name){
  for (  RepositoryMetaData repository : repositories) {
    if (name.equals(repository.name())) {
      return repository;
    }
  }
  return null;
}

public RepositoryMetaData repository ( String name ) { for ( RepositoryMetaData repository : repositories ) { if ( name . equals ( repository . name ( ) ) ) { return repository ; } } return null ; }
returns a repository with a given name or null if such repository doesn ' t exist
