code: public List<BeanDefinition> inspectPlugin(PluginConfig plugin) {
          Configuration conf = new ConfigurationImpl();
          Collection<PluginConfig> plugins = new LinkedList<PluginConfig>();
          plugins.add(plugin);
          conf.setPlugins(plugins);
          ConfigurationManager manager = new ConfigurationManager(conf, false, locateConfigurationProvider());
          manager.executeConfigurationProviders();
          return conf.getAvailableBeans(plugin);
      }
docs: Retrieves the bean definitions that contains an specific plugin.
  
  @param plugin
  Plugin container of bean definitions.
  @return List of bean definitions.