I get the point - we can't cater for all query possibilities (downside of writing own SQL-mapping for better control, opposed to exposing eg. a JPA Criteria API). Again, it's not ideal but we DON'T want an API that forces you to fork the engine to alter XML-mapping files. If we whould offer a way of hooking in additional XML-mapping files in mybatis using the process-engine configuration, this is another story. At the moment, we don't have the bandwidth to do a change of this magnitude, I'm afraid…
I'll take a look at the pull-request, thanks!