private void handleCommitOnly(Sim_event ev)
    {
        int src = -1;   // the sender id
        boolean success = false;
        int tag = -1;

        try
        {
            // id[0] = resID, [1] = reservID, [2] = trans ID, [3] = sender ID
            int[] obj = ( int[] ) ev.get_data();

            // get the data inside the array
            int returnTag = GridSimTags.RETURN_AR_COMMIT;
            tag = returnTag + obj[2];
            src = obj[3];

            // check whether this resource can support AR or not
            success = checkResourceType(src, returnTag, obj[2],
                            GridSimTags.AR_COMMIT_ERROR_RESOURCE_CANT_SUPPORT,
                            "can't commit a reservation");

            // if this resource is not supported AR, then exit
            if (!success) {
                return;
            }
            else {
                ( (ARPolicy) policy_).handleCommitOnly(obj[1], src, tag);
            }
        }
        catch (ClassCastException c) {
            success = false;
        }
        catch (Exception e) {
            success = false;
        }

        // if there is an exception, then send back an error msg
        if (!success && tag != -1)
        {
            System.out.println(super.get_name() + " : Error - can't commit a "+
                "reservation.");

            super.send(src, 0.0, GridSimTags.RETURN_AR_COMMIT,
                new IO_data(new Integer(GridSimTags.AR_COMMIT_ERROR),SIZE,src));
        }
    }