Refactor out a convenience class to convert from a OGC pattern to a Java regex