code: private static Geometry splitMultiLineStringWithLine(MultiLineString input, LineString cut) {
          Geometry lines = input.difference(cut);
          //Only to preserve SQL constrains
          if (lines instanceof LineString) {
              return FACTORY.createMultiLineString(new LineString[]{(LineString) lines.getGeometryN(0)});
          }
          return lines;
      }
docs: Splits the specified MultiLineString with another lineString.
  
  @param MultiLineString
  @param lineString