public function getStructure(string $key, string $type = null): JsonResponse
    {
        try {
            $form = $this->formManager->getForm($key, $type);
        } catch (HCException $exception) {
            return $this->response->error($exception->getMessage());
        }

        return $this->response->success('OK', $form);
    }