docs: public static byte[] stringToUid(final String uid, final short uid_length) {
      if (uid == null || uid.isEmpty()) {
        throw new IllegalArgumentException("UID was empty");
      }
      String id = uid;
      if (uid_length > 0) {
        while (id.length() < uid_length * 2) {
          id = "0" + id;
        }
      } else {
        if (id.length() % 2 > 0) {
          id = "0" + id;
        }
      }
      return DatatypeConverter.parseHexBinary(id);
    }