public function save(ezcWorkflow $workflow)
{
$workflowVersion = $this->getCurrentVersion($workflow->name) + 1;
$filename = $this->getFilename($workflow->name, $workflowVersion);
$document = $this->saveToDocument($workflow, $workflowVersion);
file_put_contents($filename, $document->saveXML());
}