}
jarOutputStream = new RandomAccessStream();
jarOutputStream.connect(filename,
RandomAccessStream.READ_WRITE_TRUNCATE);
outputStream = jarOutputStream.openOutputStream();
prof = System.getProperty(MICROEDITION_PROFILES);
space = prof.indexOf(' ');
if (space != -1) {
prof = prof.substring(0, space);