public MIDletData getMIDlet(int i) {
		String value = getValue("MIDlet-" + i);

		if (value == null)
			return null;

		int p1 = value.indexOf(',');

		String name = null;
        String icon = null;
		String cls = null;

		if (p1 != -1) {
			name = value.substring(0, p1).trim();
 
            int p2 = value.indexOf(',', p1 + 1);

			if (p2 != -1) {
                icon = value.substring(p1 + 1, p2).trim();
				cls = value.substring(p2 + 1).trim();
			}
			else {
				icon = value.substring(p1 + 1).trim();
			}
		}
		else {
			name = value.trim();
		}

        //System.out.println ("name: "+name+" icon: "+icon+ " cls: "+cls);

        if ("".equals(name)) name = null;
        if ("".equals(cls)) cls = null;
        if ("".equals(icon)) icon = null;

		return new MIDletData(i, name, icon, cls);
	}