public void addComment(Comment c) { Assert.notNull(c, "Comment may not be null"); Assert.hasText(c.getBlogPostId(), "Comment must have a blog post id"); db.create(c); }