return new QueueIterator<E>(coll.iterator(), getContext().getSerializationService(), false);
}
public Object[] toArray() {
IteratorRequest request = new IteratorRequest(name);
PortableCollection result = invoke(request);
Collection<Data> coll = result.getCollection();
int i = 0;
Object[] array = new Object[coll.size()];
for (Data data : coll) {
array[i++] = getContext().getSerializationService().toObject(data);
}