private static bool FilterMatches(
     FilterScope scope,
     AutofacFilterCategory filterCategory,
     ILifetimeScope lifeTimeScope,
     HttpActionDescriptor descriptor,
     FilterPredicateMetadata metadata)
 {
     return(metadata.FilterCategory == filterCategory &&
            metadata.Scope == scope &&
            metadata.Predicate(lifeTimeScope, descriptor));
 }