protected void listReplicas(String user, String host) throws DBException
 {
  PrintStream out = getOutputStream();
  Replicas queries = new Replicas(db, getConfiguration());
  Cursor<ReplicaInfo> list = null;
  try
  {
   Number defaultId;
   {
    ReplicaInfo defaultReplica = queries.findReplica(user, host, null);
    defaultId = null == defaultReplica ? null : defaultReplica.getId();
   }
   list = queries.listReplicas(user, host);
   for (ReplicaInfo rep; null != (rep = list.next());)
   {
    String path = rep.getRootPath();
    out.printf("%c %.76s%c%n", rep.getId().equals(defaultId) ? '*' : ' ', path, path
      .length() > 76 ? '>' : ' ');
    for (int at = 76; path.length() > at; at += 75)
     out.printf("  >%.75s%c%n", path.substring(at),
       path.length() > at + 75 ? '>' : ' ');
   }
  }
  finally
  {
   if (null != list)
    try
    {
     list.close();
    } catch (Exception ex)
    {
     log().log(Level.FINE, "Could not close " + list, ex);
    }
  }
 }