why not PatternFormatterResourceDefinition.PATTERN_FORMATTER.marshalAsAttribute(...)