Extract the creation of TsdbQuery objects into a QueryBuilder

What if a "IllegalArgumentException" is thrown?