class GeometryConvert {

        public static MultiLineString toSegmentsMultiLineString(Geometry geometry) {
                Set<LineString> result = toSegmentsLineString(geometry);
                if (result != null) {
                        return FACTORY.createMultiLineString(result.toArray(new LineString[result.size()]));
                }
                return null;
        }

        private  GeometryConvert();

}