code: @Override
      protected Result<Object> fetchRelated(RegistryEntry entry, Serializable relationId, QueryAdapter queryAdapter) {
  
          ResultFactory resultFactory = context.getResultFactory();
  
          String uid = getUID(entry, relationId);
          Object relatedResource = resourceMap.get(uid);
          if (relatedResource != null) {
              return resultFactory.just(relatedResource);
          }
          ResourceInformation resourceInformation = entry.getResourceInformation();
          Class<?> resourceClass = resourceInformation.getResourceClass();
          return resultFactory.just(proxyFactory.createResourceProxy(resourceClass, relationId));
      }
docs: Get relations from includes section or create a remote proxy