Rather than creating a string and then parsing it, is there a way to create a DWITHIN query directly using a FilterFactory?

https://github.com/geotools/geotools/blob/master/modules/library/main/src/main/java/org/geotools/filter/FilterFactoryImpl.java#L594