public Object lookupByQuery(final String query, final Map<String, ?> parameters) {
final LookupWithNamedQueryMethod method = daoRuntimeInfo.getLookupByNamedQueryMethod();
if(method == null) {
throw new NoMethodWithAnnotationFoundException("No method found in DAO class '" + dao.getClass().getName() + "' that is annotated " +
"with '" + LookupByQuery.class.getSimpleName() + "' annotation and has a Map argument for the named parameters.");
}
return method.invoke(dao, query, parameters);
}