class RegexExtractorInterceptorMillisSerializer implements
    RegexExtractorInterceptorSerializer {

  @Override
  public void configure(Context context) {
    String pattern = context.getString("pattern");
    Preconditions.checkArgument(!StringUtils.isEmpty(pattern),
        "Must configure with a valid pattern");
    formatter = DateTimeFormat.forPattern(pattern);
  }

}