MapElement me = (MapElement) e;
int i = 0; int size = MapHandler.get_map_container_size(mc); java.lang.Object name = null; java.lang.Object[] a = mc.names;  while (i < size) {  name = ArrayHandler.get_array_element(a, i);  if (name != null) {  if (((java.lang.String) name).startsWith((java.lang.String) n)) {  /*?? int begin = 0; java.lang.String sub = null; int number = 0;
    static int get_map_element_count(java.lang.Object c, java.lang.Object e) {        int count = 0;        MapContainer mc = (MapContainer) c;        if (mc != null) {            MapElement me = (MapElement) e;                        if (me != null) {                                    int i = 0;                int size = MapHandler.get_map_container_size(mc);                java.lang.Object name = null;                    while (i < size) {                        name = ArrayHandler.get_array_element(mc.names, i);                        if (name != null) {                            if (((java.lang.String) name).startsWith((java.lang.String) me.name)) {    /*??                            int begin = 0;                            java.lang.String sub = null;                            int number = 0;                                            begin = ((java.lang.String) name).indexOf("_");                            sub = ((java.lang.String) name).substring(begin + 1);                            number = Integer.parseInt(sub);                                if (number > count) {                                    count = number;                            }*/                                count++;                        }                        } else {                            // Reached last valid name. Only null entries left.                        break;                    }                        i++;                }            } else {                    System.out.println("ERROR: Could not get map element count. The map element is null.");            }        } else {            System.out.println("ERROR: Could not get map element count. The map is null.");        }        return count;    }