public void upgradeEntry(Entry entry) throws Exception {
System.out.println("upgrading " + entry);
Story story = Story.fromJson(entry.getData());
story.setId(entry.getKey() + "rx");
story.setRevision(1);
if (story.getList().equals("todo"))
story.setList(ID_LIST_TODO);
else if (story.getList().equals("doing"))
story.setList(ID_LIST_DOING);
else if (story.getList().equals("done"))
story.setList(ID_LIST_DONE);
Meta<Story> meta = Meta.wrap("story", story);
System.out.println(new String(meta.toJson()));