public Plugin apply(String id) {
SingleMessageLogger.nagUserOfReplacedMethod("PluginContainer.apply(String)", "PluginAware.apply(Map) or PluginAware.apply(Closure)");
PotentialPluginWithId potentialPlugin = pluginRegistry.lookup(id);
if (potentialPlugin == null) {
throw new UnknownPluginException("Plugin with id '" + id + "' not found.");
}
Class<? extends Plugin<?>> pluginClass = potentialPlugin.asImperativeClass();
if (pluginClass == null) {