public void Authorize(SecurityExtensionPoint extensionPoint, string context)
 {
     if (!IsAuthorized(extensionPoint, context))
     {
         throw new SecurityException(); //TODO Replace with same exception as PIAB Authorization CallHandler?
     }
 }
 public bool IsAuthorized(SecurityExtensionPoint extensionPoint, string context)
 {
     return(extensionPoint.ExtendedValue.GetService <IAuthorizationService>().IsAuthorized(CreateContract(context)));
 }