moved named query handling to GlobalAnnotationMocker