code: public String toWkt(Geometry geometry) {
  		try {
  			return WktService.toWkt(geometry);
  		} catch (WktException e) {
  			return null;
  		}
  	}
docs: Format the given geometry object to Well Known Text representation.
  
  @param geometry
  The geometry to format.
  @return Get WKT representation of the given geometry, or null in case something went wrong.