docs: public void addDeployedArtifact(ResourceDefinitionEntity deployedArtifact) {
      if (deployedArtifacts == null) {
        deployedArtifacts = new HashMap<Class<?>, List>();
      }
  
      Class<?> clazz = deployedArtifact.getClass();
      List artifacts = deployedArtifacts.get(clazz);
      if (artifacts == null) {
        artifacts = new ArrayList();
        deployedArtifacts.put(clazz, artifacts);
      }
  
      artifacts.add(deployedArtifact);
    }