The tutorial mostly uses the MathTransform services to handle coordinates. You can actually use GeoTools DataStore to perform the SQL query for you resulting in a FeatureCollection. The IBM tutorial performs these steps by hand (Constructing the SQL and translating Well Known Binary into a JTS Geometry etc...).