Class<? extends SearchCallback> callbackClass = searchableQuery.callbackClass();
if (callbackClass != null && callbackClass != SearchCallback.class) {
repository.setSearchCallback(BeanUtils.instantiate(callbackClass));
}
repository.setJoins(searchableQuery.joins());
}
return repository;
}