private static Geometry deserialize(byte[] bytes) {
        if (bytes == null) {
            return null;
        }
        try {
            WKBReader reader = new WKBReader(new GeometryFactory());
            return reader.read(bytes);
        } catch (ParseException e) {
            throw new IllegalArgumentException(e);
        }
    }
Deserializes a geometry in the WKB format.

@param bytes A byte array representing a {@link Geometry} in WKB format or null.
@return The deserialized object or null if the byte array was null.
postgis/src/main/java/org/jdbi/v3/postgis/PostgisCodec.java