source.prepareToWork();
    void ensureData (int amount)    {        while (queue.size () < amount)        {            assert source != null;            // if I need to get data from my source I better not be a scheduled            // buffer.            assert maxSize == -1:                "maxSize should equal -1 " +                "(representing not a scheduled buffer)\n" +                "Queue: " + queue +                ".size: " + queue.size() +                " amount is: " + amount +                " and maxSize is: " + maxSize;            source.work ();        }    }