this.sessionManager.commit();
}
private void addTag(List<Article> articles, List<Tag> tags, int articleIndex, int tagIndex) {
if (articleIndex < articles.size() && tagIndex < tags.size()) {
Article article = articles.get(articleIndex);
article.getTags().add(tags.get(tagIndex));
}
}