private static ResourceUserList createGridUser(GridletList list)
    {
        ResourceUserList userList = new ResourceUserList();
        
        userList.add(0);    // user ID starts from 0
        userList.add(1);
        userList.add(2);

        int userSize = userList.size();
        int gridletSize = list.size();
        int id = 0;
        
        // assign user ID to particular Gridlets
        for (int i = 0; i < gridletSize; i++)
        {
            if (i != 0 && i % userSize == 0)
                id++;

            ( (Gridlet) list.get(i) ).setUserID(id);
        }
        
        return userList;
    }