private List<Entry> getReleaseFeedEntries(String baseUrl, Repository repository, int maxFeedEntries) throws IOException {
        List<Entry> entries = new ArrayList<>();
        List<Release> releases = getReleases(repository);
        
        for (Release release : releases) {
            Entry entry = new Entry();
            
            entry.setId(release.getHtmlUrl());
            entry.setTitle(repository.getDescription() + ": " + release.getName());
            entry.setPublished(release.getPublishedAt());
            entry.setUpdated(release.getPublishedAt());
            
            Link link = new Link();
            link.setType(DataConstants.HTML_MIME_TYPE);
            link.setHref(getHtmlLink(baseUrl, repository.getName()));
            entry.setAlternateLinks(Collections.singletonList(link));
            
            StringBuilder contentBuffer = new StringBuilder();
            if (!StringUtils.isEmpty(release.getBody())) {
                contentBuffer.append("<p>").append(release.getBody()).append("</p>");
            }
            contentBuffer.append("<p><a href=\"").append(link.getHref()).append("\">Source repository details</a>");
            contentBuffer.append("<br><a href=\"").append(release.getHtmlUrl()).append("\">GitHub release details</a></p>");
            
            Content description = new Content();
            description.setType(DataConstants.HTML_MIME_TYPE);
            description.setValue(contentBuffer.toString());
            entry.setSummary(description);
            
            entries.add(entry);
            
            if (maxFeedEntries != 0  && entries.size() >= maxFeedEntries) {
                break;
            }
        }
        return entries;
    }