docs: public static String getProcessDiagramResourceNameFromDeployment(
        ProcessDefinitionEntity processDefinition, Map<String, ResourceEntity> resources) {
      
      if (StringUtils.isEmpty(processDefinition.getResourceName())) {
        throw new IllegalStateException("Provided process definition must have its resource name set.");
      }
      
      String bpmnResourceBase = stripBpmnFileSuffix(processDefinition.getResourceName());
      String key = processDefinition.getKey();
      
      for (String diagramSuffix : DIAGRAM_SUFFIXES) {
        String possibleName = bpmnResourceBase + key + "." + diagramSuffix;
        if (resources.containsKey(possibleName)) {
          return possibleName;
        }
        
        possibleName = bpmnResourceBase + diagramSuffix;
        if (resources.containsKey(possibleName)) {
          return possibleName;
        }
      }
      
      return null;
    }