//System.err.println("=======================");
List<Component> clientList = new ArrayList<Component>();
List<Component> serverList = new ArrayList<Component>();
Component clientComponent = null;
Component serverComponent = null;
boolean advanceClient = true;
boolean advanceServer = true;
while ((!advanceServer || server.hasNext()) && (!advanceClient || client.hasNext())) {
if (advanceClient) clientComponent = client.next();
if (advanceServer) serverComponent = server.next();