Item socketAddress = getChildItem(System.SOCKET_ADDRESS); removeChildItem(System.SOCKET_ADDRESS); destroyChildItem((SocketAddress) socketAddress);
Item socketAddress = getChild(System.SOCKET_ADDRESS); removeChild(System.SOCKET_ADDRESS); destroyChild((SocketAddress) socketAddress);
    public void finalizz() throws Exception {        //        // Communication partners.        ///*??        if (getChildItem(System.SYSTEMS_COUNT) != null) {            String loc;            String args;             String wp;            System system = null;            i = 0;            while (i < ((Integer) getChildItem(System.SYSTEMS_COUNT)).getJavaPrimitive()) {                s = new String(System.SYSTEM + "_" + java.lang.String.valueOf(i));                loc = new String(System.SYSTEM_LOCATION + "_" + java.lang.String.valueOf(i));                args = new String(System.SYSTEM_ARGUMENTS + "_" + java.lang.String.valueOf(i));                wp = new String(System.SYSTEM_WORKPATH + "_" + java.lang.String.valueOf(i));                system = (System) getChildItem(s);                removeChildItem(s);                destroyChildItem(system);                                i++;            }            Integer systemsCount = (Integer) getChildItem(System.SYSTEMS_COUNT);            removeChildItem(System.SYSTEMS_COUNT);            destroySystemsCount(systemsCount);        } else {            throw new Exception("Could not finalize system. The systems count is null.");        }*/        Item user = getChildItem(System.USER);        removeChildItem(System.USER);        destroyChildItem((User) user);        Item domainName = getChildItem(System.DOMAIN_NAME);        removeChildItem(System.DOMAIN_NAME);//??            destroyDomainName((String) domainName);        Item hostName = getChildItem(System.HOST_NAME);        removeChildItem(System.HOST_NAME);//??            destroyHostName((String) hostName);        Item ip4Address = getChildItem(System.IP4_ADDRESS);        removeChildItem(System.IP4_ADDRESS);        destroyChildItem((Ip4Address) ip4Address);        Item ip6Address = getChildItem(System.IP6_ADDRESS);        removeChildItem(System.IP6_ADDRESS);        destroyChildItem((Ip6Address) ip6Address);        Item socketAddress = getChildItem(System.SOCKET_ADDRESS);        removeChildItem(System.SOCKET_ADDRESS);        destroyChildItem((SocketAddress) socketAddress);        Item logLevel = getChildItem(System.LOG_LEVEL);        removeChildItem(System.LOG_LEVEL);        destroyChildItem((Integer) logLevel);        Item controller = getChildItem(System.CONTROLLER);        removeChildItem(System.CONTROLLER);        destroyChildItem((Controller) controller);        super.finalizz();    }