protected function registerMetadataService()
    {
        $metadataService = $this->getServiceLocator()->get(MetadataService::SERVICE_ID);
        $metadataService->setOption(MetadataService::EXPORTER_KEY, $this);
        $this->getServiceManager()->register(MetadataService::SERVICE_ID, $metadataService);
    }