code: public static void enhanceRuleMetadata(RuleProvider provider, Rule rule)
      {
          if (rule instanceof Context)
          {
              Context context = (Context) rule;
              if (!context.containsKey(RuleMetadataType.ORIGIN))
                  context.put(RuleMetadataType.ORIGIN, provider.getMetadata().getOrigin());
              if (!context.containsKey(RuleMetadataType.RULE_PROVIDER))
                  context.put(RuleMetadataType.RULE_PROVIDER, provider);
              if (!context.containsKey(RuleMetadataType.TAGS))
                  context.put(RuleMetadataType.TAGS, provider.getMetadata().getTags());
          }
      }
docs: Specify additional meta-data to individual {@link Rule} instances originating from the corresponding {@link RuleProvider} instance.