person.setName(post.getAuthor().getName());
entry.setAuthors(Arrays.asList(person));
}
private void setCategories(Post post, Entry entry) {
Category category = new Category();
category.setLabel(post.getCategory().getDisplayName());
category.setTerm(post.getCategory().getUrlSlug());
List<Category> categories = new ArrayList<>();
categories.add(category);
if (post.isBroadcast()) {
Category broadcast = new Category();
broadcast.setLabel("Broadcast");
broadcast.setTerm("broadcast");
categories.add(broadcast);
}
entry.setCategories(categories);
}