public static String getName( Plugin plugin )
    {
        return getName( XMPPServer.getInstance().getPluginManager().getPluginPath( plugin ) );
    }
Returns the name of a plugin. The value is retrieved from the plugin.xml file of the plugin. If the value could not
be found, {@code null} will be returned. Note that this value is a 'human readable' name, which can be distinct
from the name of the plugin directory as returned by {@link #getCanonicalName(Path)}.

Note that this method will return data only for plugins that have successfully been installed. To obtain data
from plugin (directories) that have not (yet) been  installed, refer to the overloaded method that takes a Path
argument.

@param plugin The plugin (cannot be null)
@return the plugin's human-readable name.
xmppserver/src/main/java/org/jivesoftware/openfire/container/PluginMetadataHelper.java