TimeOutputFormatter formatter = TimeOutputFormatter.DEFAULT_FORMATTER;
for (Token token: compiledPattern) {
String output = null;
long value = 0;
FieldType type = TEXT;
int format = token.getFormat();
switch (format) {
case FORMAT_OUTPUT:
formatter = (TimeOutputFormatter) token.getData();