public LookupManager(Contact[] contacts, RouteTable routeTable, KUID lookupId) {
this.routeTable = routeTable;
this.lookupId = lookupId;
Contact localhost = routeTable.getIdentity();
KUID contactId = localhost.getId();
XorComparator comparator = new XorComparator(lookupId);
this.responses = new TreeSet<Contact>(comparator);
this.closest = new TreeSet<Contact>(comparator);
this.query = new TreeSet<Contact>(comparator);