Partial fix for GRAILS-9996: Adds generic type parameter for DetachedCriterias in DetachedCriteriaTransformer