// merged plugin is a merge with the direct plugin(management)
if (mergeWithExisting)
{
if (managed && managedPlugin != null)
{
mergedPlugin = plugins.merge(mergedPlugin, managedPlugin);
}
else if (!managed && plugins.hasPlugin(pluginCoordinates))
{
mergedPlugin = plugins.merge(mergedPlugin, plugins.getPlugin(pluginCoordinates));
}