Configuration config = provider.getConfiguration(configurationContext);
if (config != null)
{
for (Rule rule : config.getRules())
{
ConfigurationRuleBuilder ruleBuilder = context.getConfigurationBuilder().addRule(rule);
if (rule instanceof RelocatableRule && ((RelocatableRule) rule).isRelocated())
ruleBuilder.withPriority(((RelocatableRule) rule).priority());
else
ruleBuilder.withPriority(provider.priority());
}
}
}
else
throw new RewriteException("@" + RewriteConfiguration.class.getSimpleName() + " type [" + type.getName()