protected int searchReservation(Collection obj, int reservationID)
    {
        ARObject arObj = null;
        int found = -1;     // means the Gridlet is not in the list

        try
        {
            // Search through the list to find the given Gridlet object
            int i = 0;
            Iterator iter = obj.iterator();
            while ( iter.hasNext() )
            {
                arObj = (ARObject) iter.next();

                // Need to check against the userId as well since
                // each user might have same Gridlet id submitted to
                // same GridResource
                if (arObj.getReservationID() == reservationID)
                {
                    found = i;
                    break;
                }

                i++;
            }
        }
        catch (Exception e)
        {
            System.out.println("ARPolicy.findReservedGridlet(): Error occurs.");
            System.out.println( e.getMessage() );
        }

        return found;
    }