private bool MatchVaultAccessPolicyIdentity(PSKeyVaultModels.PSVaultAccessPolicy ap, Guid objectId, Guid? applicationId)
 {
     return ap.ApplicationId == applicationId && ap.ObjectId == objectId;
 }
 private bool ShallBeRemoved(PSKeyVaultModels.PSVaultAccessPolicy ap, Guid objectId, Guid? applicationId)
 {
     // If both object id and application id are specified, remove the compound identity policy only.                    
     // If only object id is specified, remove all policies refer to the object id including the compound identity policies.                                
     return applicationId.HasValue ? (ap.ApplicationId == applicationId && ap.ObjectId == objectId) :
         (ap.ObjectId == objectId);
 }