code: public static String getOracleWkt(final String wkt) {
        final String oracleWkt;
        // Strings longer than 4000 characters need to be converted to CLOBs.
        if (wkt.length() > 4000) {
           oracleWkt = "' || " + convertToClob(wkt) + " || '";
        } else {
           oracleWkt = wkt;
        }
        return oracleWkt;
     }
docs: Converts the given Well-Known Text string to one that will work in Oracle. If the string is
  greater than 4000 characters, the string is broken into pieces where each piece is converted
  to a CLOB. The CLOB handling assumes that the result will be wrapped in single quotes so it
  wraps the result in "<code>' || TO_CLOB(...) || '</code>".
  
  @param wkt
  the Well-Known Text string to convert.
  @return the original WKT or a <code>TO_CLOB</code> concatenation of the WKT.