//System.out.println("peer Advertisement: " + responderAdvString);
try {
// create a peer advertisement
InputStream is = new ByteArrayInputStream(responderAdvString
.getBytes());
PeerAdvertisement responderAdv = (PeerAdvertisement) AdvertisementFactory
.newAdvertisement(_XML_MIME_TYPE, is);
System.out.println(" [ Got a Discovery Response ["
+ response.getResponseCount() + " elements] from peer: "
+ responderAdv.getName() + " ]");
String peerID = (responderAdv.getPeerID()).toString();
_resolverService.sendQuery(peerID, _actorQueryMessage);
} catch (java.io.IOException e) {
// bogus peer, skip this message alltogether.
System.out.println("Warning: cannot parse remote "
+ "peer's advertisement.\n" + e.getMessage());