public function getExportForm(core_kernel_classes_Resource $resource)
    {
        if ($resource instanceof \core_kernel_classes_Class) {
            $formData = ['class' => $resource];
        } else {
            $formData = ['class' => $this->getClass($resource)];
        }
        $form = new MetadataExporterForm($formData);

        return $form->getForm();
    }