}
if (hm.get("CNAME") != null && depth > 0) {
return getRecords((String) hm.get("CNAME"), recordType, depth - 1);
}
} else if ("TIMEOUT".equals(o)) {
throw new TimeoutException("TIMEOUT");
} else {
throw new IllegalStateException("getRecord found an unexpected data");
}
}
return res.size() > 0 ? res : null;