MapHandler.set_map_element(i.instances, o, name);
MapHandler.set_map_element(i.instances, name, o);
    static void initialize_child_item(java.lang.Object p0, java.lang.Object p1) throws java.lang.Exception {        Item i = (Item) p0;                if (i != null) {                            LogHandler.log(LogHandler.INFO_LOG_LEVEL, "Initialize item element.");            java.lang.Object name = MapHandler.get_map_element(p1, CategoryHandler.NAME);                            java.lang.Object category = null;                            java.lang.Object abstraction = null;                            java.lang.Object o = null;            // Item.            category = MapHandler.get_map_element(p1, CategoryHandler.ITEM_CATEGORY);            abstraction = MapHandler.get_map_element(p1, CategoryHandler.ITEM_ABSTRACTION);            o = ItemHandler.create_object(category, abstraction);            MapHandler.set_map_element(i.items, o, name);            // Position.            category = MapHandler.get_map_element(p1, CategoryHandler.POSITION_CATEGORY);            abstraction = MapHandler.get_map_element(p1, CategoryHandler.POSITION_ABSTRACTION);            o = ItemHandler.create_object(category, abstraction);            MapHandler.set_map_element(i.positions, o, name);            // Instance.            category = MapHandler.get_map_element(p1, CategoryHandler.INSTANCE_CATEGORY);            abstraction = MapHandler.get_map_element(p1, CategoryHandler.INSTANCE_ABSTRACTION);            o = ItemHandler.create_object(category, abstraction);            MapHandler.set_map_element(i.instances, o, name);            // Interaction.            category = MapHandler.get_map_element(p1, CategoryHandler.INTERACTION_CATEGORY);            abstraction = MapHandler.get_map_element(p1, CategoryHandler.INTERACTION_ABSTRACTION);            o = ItemHandler.create_object(category, abstraction);            MapHandler.set_map_element(i.interactions, o, name);            // Java object.            java.lang.Object java_object_item = MapHandler.get_map_element(i.items, name);            java.lang.Object java_object_position = MapHandler.get_map_element(i.positions, name);                        if (java_object_item != null) {                                if (java_object_item instanceof Item) {                                        JavaObjectHandler.add_to_java_object(i.java_object, ((Item) java_object_item).java_object, java_object_position);                    } else {                                        LogHandler.log(LogHandler.WARNING_LOG_LEVEL, "Could not initialize item element. The java object item is not an instance of item.");                }            } else {                                LogHandler.log(LogHandler.ERROR_LOG_LEVEL, "Could not initialize item element. The java object item is null.");            }        } else {                        LogHandler.log(LogHandler.ERROR_LOG_LEVEL, "Could not initialize item element. The item is null.");        }    }