data = queue.get (index);
data = wgqueue_obj.elem(index);
    public Object peek(int index)    {        sink.registerPeek(index);        ensureData (index + 1);        if (type == Boolean.TYPE) {            return new Boolean(wgqueue_boolean.elem(index));        } else {            Object data;            data = queue.get (index);            assert data != null;                        // make a copy of structures in case they are subsequently            // modified -- the changes should not appear in the producer            // or in subsequent peek / pop's            if (data instanceof Structure) {                data = (Structure)Cloner.doCopy(data);            }            return data;        }    }