protected boolean storeRegistrationID(Sim_event ev, List list)
    {
        boolean result = false;
        if (ev == null || list == null) {
            return result;
        }

        Object obj = ev.get_data();
        if (obj instanceof Integer)
        {
            Integer id = (Integer) obj;
            list.add(id);
            result = true;

            if (record_) {
                write("Registering", id.intValue(), GridSim.clock());
                System.out.println();
                System.out.println(super.get_name() + ": registering " +
                    GridSim.getEntityName(id));

                for (int i = 0; i < list.size() ; i++)
                {
                    System.out.println(super.get_name() + ": list["+ i +"] = " +
                        GridSim.getEntityName((Integer) list.get(i)) );
                }
                System.out.println();
            }
        }

        return result;
    }