File file = new File(System.getProperty("java.io.tmpdir"),"widgetmap.wgt");
FileOutputStream out = new FileOutputStream(file);
W3CWidgetExporter.generateWgt(page, paramMap, out);
WidgetLibrary widgetLibrary = new WookieImpl();
widgetLibrary.publish(file);
}