final List<Element> databasePlugins = XmlUtils.findElements(
jdbcDatabase.getConfigPrefix() + "/plugins/plugin",
configuration);
for (final Element pluginElement : databasePlugins) {
requiredPlugins.add(new Plugin(pluginElement));
}
final List<Element> ormPlugins = XmlUtils.findElements(
ormProvider.getConfigPrefix() + "/plugins/plugin",
configuration);
for (final Element pluginElement : ormPlugins) {
requiredPlugins.add(new Plugin(pluginElement));
}
// Identify any redundant plugins
final List<Plugin> redundantPlugins = new ArrayList<Plugin>();
redundantPlugins.addAll(getPlugins(databaseXPath, configuration));