ISVNRepositoryLocation repository = (ISVNRepositoryLocation)repositories.get(location); if (repository == null) { repository = SVNRepositoryLocation.fromString(location); addToRepositoriesCache(repository); }
Set keys = repositories.keySet(); for(Iterator iter = keys.iterator();iter.hasNext();){ String url = (String)iter.next(); if(location.indexOf(url)!=-1){ return (ISVNRepositoryLocation) repositories.get(url); }  } ISVNRepositoryLocation repository = SVNRepositoryLocation.fromString(location); addToRepositoriesCache(repository);
    public ISVNRepositoryLocation getRepository(String location) throws SVNException {        ISVNRepositoryLocation repository = (ISVNRepositoryLocation)repositories.get(location);        if (repository == null) {            repository = SVNRepositoryLocation.fromString(location);            addToRepositoriesCache(repository);        }        return repository;    }