throw new ParseException("unknown identifier", offset);
} else {
int from = offset;
while (offset < format.length() && format.charAt(offset) != '%')
offset++;
components.addLast(new TextComponent(format.substring(from,
offset)));
}
}
return components;