code: private <T> T getAnnotationValue(String attribute, Class<T> type) {
  
  		Query annotation = method.getAnnotation(Query.class);
  		Object value = annotation == null ? AnnotationUtils.getDefaultValue(Query.class, attribute) : AnnotationUtils
  				.getValue(annotation, attribute);
  
  		return type.cast(value);
  	}
docs: Returns the {@link Query} annotation's attribute casted to the given type or default value if no annotation
  available.
  
  @param attribute
  @param type
  @return