code: private String getName(String s1, String s2) {
          if (s1 == null || "".equals(s1)) return s2;
          else return s1;
      }
docs: If the first String parameter is nonempty, return it,
  else return the second string parameter.
  
  @param s1 The string to be tested.
  @param s2 The alternate String.
  @return s1 if it isn't empty, else s2.