Map mc = (Map) c;
MapContainer mc = (MapContainer) c;
    static void set_map_element(java.lang.Object c, java.lang.Object e) {        Map mc = (Map) c;                if (mc != null) {                        MapElement me = (MapElement) e;                        if (me != null) {                    int i = MapHandler.get_next_map_element_index(mc, me.name);                    ArrayHandler.set_array_element(mc.names, i, me.name);                ArrayHandler.set_array_element(mc.references, i, me.reference);            } else {                    System.out.println("ERROR: Could not set map element. The map element is null.");            }        } else {            System.out.println("ERROR: Could not set map element. The map container is null.");        }    }