String updatedVersion = null;
// we're not going to prompt the user to accept a plugin update until we find one.
boolean promptToPersist = false;
RuntimeInfo settingsRTInfo = settings.getRuntimeInfo();
// determine the behavior WRT prompting the user and installing plugin updates.
Boolean pluginUpdateOverride = settingsRTInfo.getPluginUpdateOverride();
// second pass...if we're using the plugin registry, and the plugin is listed in the plugin-registry.xml, use
// the version from <useVersion/>.
if ( StringUtils.isEmpty( version ) && settings.isUsePluginRegistry() )
{