*/
public static void bindProvider(
final Object providerInstance, final ContractProvider model, final DynamicConfiguration dc) {
for (final Class contract : model.getContracts()) {
final ScopedBindingBuilder bindingBuilder = Injections.
newBinder(providerInstance).
qualifiedBy(new CustomAnnotationImpl());
//noinspection unchecked
bindingBuilder.to(contract);
final int priority = model.getPriority(contract);
if (priority > ContractProvider.NO_PRIORITY) {
bindingBuilder.ranked(priority);
}
Injections.addBinding(bindingBuilder, dc);
}
}