code: protected <T, I> T handleCreate(I resource, Class<T> outputType) throws ExecutionException, InterruptedException, KubernetesClientException, IOException {
      RequestBody body = RequestBody.create(JSON, JSON_MAPPER.writeValueAsString(resource));
      Request.Builder requestBuilder = new Request.Builder().post(body).url(getNamespacedUrl(checkNamespace(resource)));
      return handleResponse(requestBuilder, outputType, Collections.<String, String>emptyMap());
    }
docs: Create a resource.
  
  @param resource resource provided
  @param outputType resource type you want as output
  @param <T> template argument for output type
  @param <I> template argument for resource
  
  @return returns de-serialized version of apiserver response in form of type provided
  @throws ExecutionException Execution Exception
  @throws InterruptedException Interrupted Exception
  @throws KubernetesClientException KubernetesClientException
  @throws IOException IOException