class GitHubUtil {

    public GHRepository tryRetrievingRepository(String repoName) throws InterruptedException {
        GHRepository repo = null;
        for (int i = 0; i < 10; i++) {
            try {
                repo = github.getRepository(repoName);
                break;
            } catch (IOException e1) {
                log.warn("Repository not created yet. Retrying connection to repository...");
                waitFor(TimeUnit.SECONDS.toMillis(1));
            }
        }
        return repo;
    }

    public  GitHubUtil(GitHub gitHub);

}