code: public static KubernetesMessage request(KubernetesCommand<?> command) {
          KubernetesRequest request = new KubernetesRequest();
          request.setCommand(command.getName());
  
          for (Map.Entry<String, Object> entry : command.getParameters().entrySet()) {
              if (entry.getKey().equals(KubernetesMessageHeaders.NAME)) {
                  request.setName(entry.getValue().toString());
              }
  
              if (entry.getKey().equals(KubernetesMessageHeaders.NAMESPACE)) {
                  request.setNamespace(entry.getValue().toString());
              }
  
              if (entry.getKey().equals(KubernetesMessageHeaders.LABEL)) {
                  request.setLabel(entry.getValue().toString());
              }
          }
  
          return new KubernetesMessage(request);
      }
docs: Request generating instantiation.
  @param command
  @return