docs: protected ProcessDefinitionEntity loadProcessDefinition(String processDefinitionId) {
      ProcessEngineConfigurationImpl configuration = Context.getProcessEngineConfiguration();
      DeploymentCache deploymentCache = configuration.getDeploymentCache();
  
      ProcessDefinitionEntity processDefinition = deploymentCache.findProcessDefinitionFromCache(processDefinitionId);
  
      if (processDefinition == null) {
        CommandContext commandContext = Context.getCommandContext();
        ProcessDefinitionManager processDefinitionManager = commandContext.getProcessDefinitionManager();
        processDefinition = processDefinitionManager.findLatestProcessDefinitionById(processDefinitionId);
  
        if (processDefinition != null) {
          processDefinition = deploymentCache.resolveProcessDefinition(processDefinition);
        }
      }
  
      return processDefinition;
  
    }