code: public static ArrayList<byte[]> resolveAll(final TSDB tsdb,
                                        final Map<String, String> tags)
      throws NoSuchUniqueName {
      try {
        return resolveAllInternal(tsdb, tags, false);
      } catch (RuntimeException e) {
        throw e;
      } catch (Exception e) {
        throw new RuntimeException("Should never happen!", e);
      }
    }
docs: Resolves all the tags (name=value) into the a sorted byte arrays.
  This function is the opposite of {@link #resolveIds}.
  @param tsdb The TSDB to use for UniqueId lookups.
  @param tags The tags to resolve.
  @return an array of sorted tags (tag id, tag name).
  @throws NoSuchUniqueName if one of the elements in the map contained an
  unknown tag name or tag value.