private Repository getRepository(String organizationName, String repositoryName) throws IOException {
        for (Repository repository : getRepositories(organizationName)) {
            if (repository.getName().equals(repositoryName)) {
                return repository;
            }
        }
        
        // We don't know about that repo.
        throw new NotFoundException("Could not find repository " + repositoryName + " in organization " + organizationName);
    }