net.datacrow.util.zip.ZipFile zf = new net.datacrow.util.zip.ZipFile(DataCrow.moduleDir, filename);
module.setIcon16Filename("icon16.png");
module.setIcon32Filename("icon32.png");
XmlModuleWriter writer = new XmlModuleWriter(module);
byte[] xml = writer.getXML();
writer.close();
zf.addEntry("module.xml", xml);
zf.addEntry("icon16.png", icon16);
zf.addEntry("icon32.png", icon32);
zf.close();