code: public static MultiLineString createMultiLineString(Geometry geom) throws SQLException {
          if (geom != null) {
              if (geom.getDimension() > 0) {
                  final List<LineString> lineStrings = new LinkedList<LineString>();
                  toMultiLineString(geom, lineStrings);
                  return GEOMETRY_FACTORY.createMultiLineString(
                          lineStrings.toArray(new LineString[0]));
              } else {
                  return GEOMETRY_FACTORY.createMultiLineString(null);
              }
          } else {
              return null;
          }
      }
docs: Constructs a MultiLineString from the given geometry's coordinates.
  
  @param geom Geometry
  @return A MultiLineString constructed from the given geometry's coordinates
  @throws SQLException