private function commitPostProcess(AbstractClassContent $content, Revision $draft)
    {
        $data = $draft->jsonSerialize();
        if (0 !== count($data['parameters']) && 0 !== count($data['elements'])) {
            $draft->setRevision($content->getRevision());
            $draft->setState(Revision::STATE_MODIFIED);
            $this->entityManager->persist($draft);
        }

        return $this;
    }