if (getChildItem(Family.EXTERNAL_SYSTEMS_COUNT) != null) {
if (getChild(Family.EXTERNAL_SYSTEMS_COUNT) != null) {
    public void finalizz() throws Exception {        int i;        String s;/*??        //        // External systems.        //        if (getChildItem(Family.EXTERNAL_SYSTEMS_COUNT) != null) {            String cmd = null;            ExternalSystem externalSystem = null;            i = 0;            while (i < ((Integer) getChildItem(Family.EXTERNAL_SYSTEMS_COUNT)).getJavaPrimitive()) {                s = new String(Family.EXTERNAL_SYSTEM + "_" + java.lang.String.valueOf(i));                cmd = new String(Family.EXTERNAL_SYSTEM_COMMAND + "_" + java.lang.String.valueOf(i));//??                c.setChildItem(cmd, (String) getChildItem(cmd));                externalSystem = (ExternalSystem) getChildItem(s);                removeChildItem(s);                destroyChildItem(externalSystem);                                i++;            }            Integer externalSystemsCount = (Integer) getChildItem(Family.EXTERNAL_SYSTEMS_COUNT);//??            c.setChildItem(Family.EXTERNAL_SYSTEMS_COUNT, externalSystemsCount);            removeChildItem(Family.EXTERNAL_SYSTEMS_COUNT);            destroyChildItem(externalSystemsCount);        } else {            throw new Exception("Could not finalize system. The external systems count is null.");        }        //        // Systems.        //        if (getChildItem(Family.SYSTEMS_COUNT) != null) {            String cl = null;            String conf = null;             System system = null;            i = 0;            while (i < ((Integer) getChildItem(Family.SYSTEMS_COUNT)).getJavaPrimitive()) {                s = new String(Family.SYSTEM + "_" + java.lang.String.valueOf(i));                cl = new String(Family.SYSTEM_CLASS_NAME + "_" + java.lang.String.valueOf(i));                conf = new String(Family.SYSTEM_CONFIGURATION_LOCATION + "_" + java.lang.String.valueOf(i));//??                c.setChildItem(cl, (String) getChildItem(cl));//??                c.setChildItem(conf, (String) getChildItem(conf));                system = (System) getChildItem(s);                removeChildItem(s);                destroyChildItem(system);                i++;            }            Integer systemsCount = (Integer) getChildItem(Family.SYSTEMS_COUNT);//??            c.setChildItem(Family.SYSTEMS_COUNT, systemsCount);            removeChildItem(Family.SYSTEMS_COUNT);            destroyChildItem(systemsCount);        } else {            throw new Exception("Could not finalize system. The systems count is null.");        }*/        //        // Available systems.        //        Item availableSystemsCategory = getChildItem(Family.AVAILABLE_SYSTEMS_CATEGORY);        removeChildItem(Family.AVAILABLE_SYSTEMS_CATEGORY);        destroyChildItem(availableSystemsCategory);/*??        if (n != null) {            Enumeration enum = n.depthFirstEnumeration();            if (enum != null) {                Object o;                Integer i = -1;                while (enum.hasMoreElements() == true) {                    o = enum.nextElement();                    i = i + 1;                    if (o != null) {                        getPreferences().put(FamilyConfiguration.AVAILABLE_SYSTEMS + "_" + Integer.toString(i), o.toString());                    }                }            }        }*/        super.finalizz();    }