getCollection()->get_databox()->getRecordRepository()->findByUuid($file->getUUID())); return new Response($boolean, $this); } /** * {@inheritdoc} */ public function getMessage(TranslatorInterface $translator) { return $translator->trans('A file with the same UUID already exists in database'); } }