}
if (isA(provider, Feature.class, contracts))
{
int priority = getPriority(priorityOverride, contracts, Feature.class, provider);
Feature feature = injectedInstance((Class<? extends Feature>) provider);
if (feature.configure(new FeatureContextDelegate(this)))
{
enabledFeatures.add(feature);
}
featureClasses.add(provider);
newContracts.put(Feature.class, priority);