*
* @return the annotated query or {@literal null} in case it's empty or none available.
*/
String getAnnotatedQuery() {
Query query = method.getAnnotation(Query.class);
String queryString = query == null ? null : (String) AnnotationUtils.getValue(query);
return StringUtils.hasText(queryString) ? queryString : null;
}