Response newResponse = null;
String referral = (String) response.getData().get("ReferralServer");
if (referral != null) {
try {
URLParser url = new URLParser(referral);
if ("whois".equals(url.getProtocol())) {
newResponse = lookup(url.getHost(), url.getPort() == -1 ? 43 : url.getPort(), query,
timeout, lineSeparator);
}
} catch (IOException e) {
System.out.println("Could not contact " + referral);
}