public synchronized Path getPluginPath( Plugin plugin )
    {
        final String canonicalName = getCanonicalName( plugin );
        if ( canonicalName != null )
        {
            return pluginDirs.get( canonicalName );
        }
        return null;
    }
Returns the plugin's directory.

@param plugin the plugin.
@return the plugin's directory.
@since Openfire 4.1
xmppserver/src/main/java/org/jivesoftware/openfire/container/PluginManager.java