code: public Map<String, String> updateOrAddVmOverride(final HttpInputs httpInputs, final VmInputs vmInputs, final String restartPriority) throws Exception {
          final ConnectionResources connectionResources = new ConnectionResources(httpInputs, vmInputs);
          try {
              final ManagedObjectReference vmMor = getVirtualMachineReference(vmInputs, connectionResources);
  
              final ManagedObjectReference clusterMor = new MorObjectHandler().getSpecificMor(connectionResources, connectionResources.getMorRootFolder(),
                      ClusterParameter.CLUSTER_COMPUTE_RESOURCE.getValue(), vmInputs.getClusterName());
  
              final ClusterConfigInfoEx clusterConfigInfoEx = getClusterConfiguration(connectionResources, clusterMor, vmInputs.getClusterName());
              final ClusterDasVmConfigSpec clusterDasVmConfigSpec = getClusterVmConfiguration(clusterConfigInfoEx, vmMor, restartPriority);
  
              final ManagedObjectReference task = connectionResources.getVimPortType()
                      .reconfigureComputeResourceTask(clusterMor, createClusterConfigSpecEx(clusterConfigInfoEx, clusterDasVmConfigSpec), true);
  
              return new ResponseHelper(connectionResources, task)
                      .getResultsMap(String.format(SUCCESS_MSG, vmInputs.getClusterName(), task.getValue()),
                              String.format(FAILURE_MSG, vmInputs.getClusterName()));
          } finally {
              if (httpInputs.isCloseSession()) {
                  connectionResources.getConnection().disconnect();
                  clearConnectionFromContext(httpInputs.getGlobalSessionObject());
              }
          }
      }
docs: Das method looks into das Cluster’s list of VM overrides to update das VM’s restartPriority value.
  If a VM override is found, das value will be updated, otherwise a new “override” will be created and added to das list.
  
  @param httpInputs
  @param vmInputs
  @param restartPriority
  @return
  @throws Exception