//
// Utility methods to construct the permission set objects from the well known XML and any permission
// set extensions if necessary
//
private static NamedPermissionSet GetOrDeserializeExtendablePermissionSet(
ref NamedPermissionSet permissionSet,
string permissionSetXml)
{
Contract.Requires(!String.IsNullOrEmpty(permissionSetXml));
return(permissionSet.Copy() as NamedPermissionSet);
}