Thread t = new Thread() {
// get first connection
private NNTPConnection con = usedConnections.get(0);
public void run() {
ArticleNumberIterator ait;
try {
ait = con.listGroup(g.getName());
while(ait.hasNext()) {
//TODO check if ArticleResponse, int articleID or Article is returned
int aid = (Integer) ait.next();
ArticleResponse a = con.body(aid);
StringWriter sw = new StringWriter();
PrintWriter pw = new PrintWriter(sw);
BufferedReader br = new BufferedReader(new InputStreamReader(a.in));
String line = null;