code: protected <T> T handleReplace(T updated, Class<T> type, Map<String, String> parameters) throws ExecutionException, InterruptedException, KubernetesClientException, IOException {
      RequestBody body = RequestBody.create(JSON, JSON_MAPPER.writeValueAsString(updated));
      Request.Builder requestBuilder = new Request.Builder().put(body).url(getResourceUrl(checkNamespace(updated), checkName(updated)));
      return handleResponse(requestBuilder, type, parameters);
    }
docs: Replace a resource, optionally performing placeholder substitution to the response.
  
  @param updated updated object
  @param type type of object provided
  @param parameters a HashMap containing parameters for processing object
  @param <T> template argument provided
  
  @return returns de-serialized version of api server response.
  @throws ExecutionException Execution Exception
  @throws InterruptedException Interrupted Exception
  @throws KubernetesClientException KubernetesClientException
  @throws IOException IOException