} else {  System.out.println("ERROR: Could not get map element index. The map element is null.");
i++;
    static int get_map_element_index(java.lang.Object c, java.lang.Object e) {        int index = -1;        MapContainer mc = (MapContainer) c;        if (mc != null) {                        MapElement me = (MapElement) e;                        if (me != null) {                    int i = index + 1;                int size = MapHandler.get_map_container_size(c);                java.lang.Object name = null;                    while (i < size) {                        name = ArrayHandler.get_array_element(mc.names, i);                        // If a null name is reached, then the name was not found.                    // In this case, reset index to -1.                    if (name == null) {                            break;                                        } else {                            // If a name equal to the searched one is found,                        // then its index is the one to be returned.                        if (name.equals((java.lang.String) me.name)) {                                index = i;                            break;                        }                    }                        i++;                }            } else {                    System.out.println("ERROR: Could not get map element index. The map element is null.");            }        } else {            System.out.println("ERROR: Could not get map element index. The map container is null.");        }        return index;    }