public Gridlet getNextGridlet(int userID) throws NoMoreGridletsException
    {
        if ((_configs == null) || (_currentConfig == null))
            throw new NoMoreGridletsException();


        if (_currentConfigGridletsCount >= _currentConfig.getCount())
        {
            if (!_itCurrentGC.hasNext())
                throw new NoMoreGridletsException();

            _currentConfig = _itCurrentGC.next();
            _currentConfigGridletsCount = 0;
        }

        Gridlet g = new Gridlet(_currentGridletID, _currentConfig.getLength(),
                _currentConfig.getInputSize(), _currentConfig.getOutputSize());
        g.setUserID(userID);

        ++_currentGridletID;
        ++_currentConfigGridletsCount;
        return g;
    }