code: private static void addMergeInclusions(JpaQueryExecutor<?> executor, QuerySpec querySpec) {
  		ArrayDeque<String> attributePath = new ArrayDeque<>();
  		Class<?> resourceClass = querySpec.getResourceClass();
  
  		addMergeInclusions(attributePath, executor, resourceClass);
  	}
docs: related attribute that are merged into a resource should be loaded by
  graph control to avoid lazy-loading or potential lack of session in
  serialization.