code: @Override
      protected String doBase(String name, Object value) {
          if (value instanceof UUID) {
              UUID uuid = (UUID) value;
              return serialize(uuid);
          } else if (value instanceof String) {
              try {
                  String string = (String) value;
                  UUID uuid = UUID.fromString(string);
                  return serialize(uuid);
              } catch (IllegalArgumentException e) {
                  throw new IndexException(e, "Field '{}' with value '{}' can not be parsed as UUID", name, value);
              }
          }
          throw new IndexException("Field '{}' requires an UUID, but found '{}'", name, value);
      }
docs: {@inheritDoc}