public synchronized String getCanonicalName( Plugin plugin )
    {
        for ( Map.Entry<String, Plugin> entry : pluginsLoaded.entrySet() )
        {
            if ( entry.getValue().equals( plugin ) )
            {
                return entry.getKey();
            }
        }
        return null;
    }
Returns the canonical name for a loaded plugin.

@param plugin A plugin (cannot be null).
@return The canonical name for the plugin (never null).
xmppserver/src/main/java/org/jivesoftware/openfire/container/PluginManager.java