System.out.println("hh3");
  public ProtocolAddress[] getByName(String hostname) throws UnknownHostException  {    ProtocolAddress[] protocolAddresses = null;    System.out.println("hh0 " + hostname);    protocolAddresses = getFromHostsFile(hostname);    if (protocolAddresses != null)    {      for (int i = 0; i < protocolAddresses.length; i++)      {        ProtocolAddress protocolAddress = protocolAddresses[i];        System.out.println("hh0' " + protocolAddress);      }      return protocolAddresses;    }    System.out.println("hh1");    Lookup lookup = null;    Lookup.setDefaultResolver(resolver);    try    {      lookup = new Lookup(hostname);    }    catch (TextParseException e)    {      throw new UnknownHostException(hostname);    }    System.out.println("hh3");    lookup.run();    System.out.println("hh4");    if (lookup.getResult() == Lookup.SUCCESSFUL)    {      Record[] records = lookup.getAnswers();      System.out.println("hh5");      protocolAddresses = new ProtocolAddress[records.length];      for (int i = 0; i < records.length; i++)      {        Record record = records[i];        protocolAddresses[i] = new IPv4Address(record.rdataToString());        System.out.println(record.getName() + " " + record.rdataToString());      }    }    else    {      System.out.println("lookup.getErrorString() " + lookup.getErrorString());    }    System.out.println("hh6");    return protocolAddresses;  }