Rule rule = context.getRule();
for ( String metaAttr : context.getRuleDescr().getAnnotationNames() ) {
AnnotationDescr ad = context.getRuleDescr().getAnnotation( metaAttr );
if ( ad.hasValue() ) {
if ( ad.getValues().size() == 1 ) {
rule.addMetaAttribute( metaAttr,
resolveValue( ad.getSingleValue() ) );
} else {
rule.addMetaAttribute( metaAttr,
ad.getValueMap() );
}