code: public static JtsGeometry geometry(String string) {
          if (StringUtils.isBlank(string)) {
              throw new IndexException("Shape shouldn't be blank");
          }
          try {
              GeometryFactory geometryFactory = CONTEXT.getGeometryFactory();
              WKTReader reader = new WKTReader(geometryFactory);
              Geometry geometry = reader.read(string);
              if (!geometry.isValid()) {
                  geometry = geometry.buffer(0);
              }
              return CONTEXT.makeShape(geometry);
          } catch (ParseException | IllegalArgumentException e) {
              throw new IndexException(e, "Shape '{}' is not parseable", string);
          }
      }
docs: Returns the {@link JtsGeometry} represented by the specified WKT text.
  
  @param string the WKT text
  @return the parsed geometry