public function registerAdapter(DynamicModule $module)
    {
        if(!is_null($module) && ! empty($module->getModule()) ) {

            $registry = $this->getRegistry();
            $config = [];
            if ($registry->isRegistered(self::REGISTRY_ENTRY_KEY)) {
                $config = $registry->get(self::REGISTRY_ENTRY_KEY);
            }

            $config[self::PREVIEWERS_KEY][$module->getModule()] = $module->toArray();
            $registry->set(self::REGISTRY_ENTRY_KEY, $config);
            return true;
        }
        return false;
    }