public static void UpdatePlugin(CrmOrganization org, CrmPlugin plugin)
        {
            if (org == null)
            {
                throw new ArgumentNullException("org");
            }
            else if (plugin == null)
            {
                throw new ArgumentNullException("plugin");
            }

            PluginType ptl = (PluginType)plugin.GenerateCrmEntities()[PluginType.EntityLogicalName];

            org.OrganizationService.Update(ptl);
            OrganizationHelper.RefreshPlugin(org, plugin);
        }