/** This factory method creates Entry objects with a specified id. */
public static Entry getEntryWithId(String id) {
Entry entry = new Entry();
entry.setId(id);
entry.setUpdated(DateTime.now());
entry.addHtmlLink("http://0.0.0.0/" + id, "en", id);
PlainTextConstruct construct = new PlainTextConstruct();
construct.setText(id);
TextContent content = new TextContent();
content.setContent(construct);
entry.setContent(content);