docs: public List<HalResource<?>> resolveLinks(String[] linkedIds, ProcessEngine processEngine) {
      Cache cache = getCache();
  
      if (cache == null) {
        return resolveNotCachedLinks(linkedIds, processEngine);
      }
      else {
        ArrayList<String> notCachedLinkedIds = new ArrayList<String>();
        List<HalResource<?>> resolvedResources = resolveCachedLinks(linkedIds, cache, notCachedLinkedIds);
  
        if (!notCachedLinkedIds.isEmpty()) {
          List<HalResource<?>> notCachedResources = resolveNotCachedLinks(notCachedLinkedIds.toArray(new String[notCachedLinkedIds.size()]), processEngine);
          resolvedResources.addAll(notCachedResources);
          putIntoCache(notCachedResources);
        }
  
        sortResolvedResources(resolvedResources);
  
        return resolvedResources;
      }
    }