Entry entry = Sandler.unmarshallEntry( request.getInputStream() );
//
// Fetch the obligatory parts of the content.
//
Content title = entry.getTitle();
Content content = entry.getContent(0);
Person author = entry.getAuthor();
//FIXME: Sandler 0.5 does not support generator
//
// Generate new blog entry.
//
WeblogEntryPlugin plugin = new WeblogEntryPlugin();
String pageName = plugin.getNewEntryPage( m_engine, blogid );
String username = author.getName();
WikiPage entryPage = new WikiPage( m_engine, pageName );
entryPage.setAuthor( username );
WikiContext context = new WikiContext( m_engine, request, entryPage );
StringBuffer text = new StringBuffer();
text.append( "!"+title.getBody() );
text.append( "\n\n" );
text.append( content.getBody() );
log.debug("Writing entry: "+text);
m_engine.saveText( context, text.toString() );