public Update getPluginUpdate(String pluginName, Version currentVersion) {
        for (Update update : pluginUpdates) {
            // Check if this is the requested plugin
            if (update.getComponentName().equals(pluginName)) {
                // Check if the plugin version is right
                if (update.getLatest().isNewerThan( currentVersion ) ) {
                    return update;
                }
            }
        }
        return null;
    }
Returns the plugin update or {@code null} if the plugin is up to date.

@param pluginName     the name of the plugin (as described in the meta-data).
@param currentVersion current version of the plugin that is installed.
@return the plugin update or null if the plugin is up to date.
xmppserver/src/main/java/org/jivesoftware/openfire/update/UpdateManager.java