attrs.putValue("Bundle-Localization", "locale");
JarOutputStream jos = new JarOutputStream(baos, manifest);
jos.putNextEntry(new ZipEntry("locale.properties"));
String content = "bundleName=The Coolest Bundle";
jos.write(content.getBytes(), 0, content.getBytes().length);
jos.closeEntry();
jos.close();
// if you want to validate that the bundle is okay
// FileOutputStream fos = new FileOutputStream(new File("/Users/marceloffermans/unittest.jar"));
// fos.write(baos.toByteArray(), 0, baos.size());