implement PluginRegistry::getPlugin