docs: public void updateCachingAndArtifacts(ParsedDeployment parsedDeployment) {
      CommandContext commandContext = Context.getCommandContext();
      final ProcessEngineConfigurationImpl processEngineConfiguration = Context.getProcessEngineConfiguration();
      DeploymentCache<ProcessDefinitionCacheEntry> processDefinitionCache 
        = processEngineConfiguration.getDeploymentManager().getProcessDefinitionCache();
      DeploymentEntity deployment = parsedDeployment.getDeployment();
  
      for (ProcessDefinitionEntity processDefinition : parsedDeployment.getAllProcessDefinitions()) {
        BpmnModel bpmnModel = parsedDeployment.getBpmnModelForProcessDefinition(processDefinition);
        Process process = parsedDeployment.getProcessModelForProcessDefinition(processDefinition);
        ProcessDefinitionCacheEntry cacheEntry = new ProcessDefinitionCacheEntry(processDefinition, bpmnModel, process);
        processDefinitionCache.add(processDefinition.getId(), cacheEntry);
        addDefinitionInfoToCache(processDefinition, processEngineConfiguration, commandContext);
      
        // Add to deployment for further usage
        deployment.addDeployedArtifact(processDefinition);
      }
    }