Iterator en = queue.iterator();
ServerRequest sr;
for (int i=0; i<result.length; i++)
{
sr = (ServerRequest) en.next();
result[i] = new StringPair(Integer.toString(sr.requestId()), new String( sr.objectId() ) );
}
return result;
}
protected synchronized ServerRequest getElementAndRemove(int rid)