public SequenceMatchRules.AnnotationExtractRule create(Env env, Map<String,Object> attributes) {
SequenceMatchRules.AnnotationExtractRule r = super.create(env, attributes);
if (r.ruleType == null) { r.ruleType = "time"; }
String expr = (String) Expressions.asObject(env, attributes.get("pattern"));
String formatter = (String) Expressions.asObject(env, attributes.get("formatter"));
Expression action = Expressions.asExpression(env, attributes.get("action"));
String localeString = (String) Expressions.asObject(env, attributes.get("locale"));
if (formatter == null) {
if (r.annotationField == null) { r.annotationField = EnvLookup.getDefaultTextAnnotationKey(env); }
/* Parse pattern and figure out what the result should be.... */
CustomDateFormatExtractor formatExtractor = new CustomDateFormatExtractor(expr, localeString);