/**
  * Render specification for the given StateWorkflow
  * @api
  * @param RenderWorkflowSpecificationFromWorkflowServiceCommand $command
  *
  * @throws WorkflowServiceNotFoundException
  */
 public function renderSpecification(RenderWorkflowSpecificationFromWorkflowServiceCommand $command)
 {
     $stateWorkflow = $this->workflowContainer->get($command->getWorkFlowServiceId());
     $htmlSpecificationRepresentation = $this->specificationRepresentationGenerator->createSpecification($stateWorkflow);
     $this->specificationWriter->write($htmlSpecificationRepresentation, $command->getOutputFileName());
 }