UndoStack.getInstance().addOperation(new StickyOperation(Collections.singletonList(news), true));
news.setFlagged(true);
DynamicDAO.save(news);
for (int i = 0; i < 20; i++) {
UndoStack.getInstance().addOperation(new NewsStateOperation(Collections.singletonList(news), i % 2 == 0 ? INews.State.UNREAD : INews.State.READ, false));
DynamicDAO.getDAO(INewsDAO.class).setState(Collections.singletonList(news), i % 2 == 0 ? INews.State.UNREAD : INews.State.READ, false, false);
}
int undos = 0;
while (UndoStack.getInstance().isUndoSupported()) {