class PluginRegistry {

    void add(Class<? extends Plugin> pluginClass)
    {
        try
        {
            add(pluginClass.newInstance());
        } catch (InstantiationException e)
        {
            throw new KernelException("Plugin %s can not be instantiated", pluginClass);
        } catch (IllegalAccessException e)
        {
            throw new KernelException("Plugin %s can not be instantiated", pluginClass);
        }
    }

}