try {
countValueString = entry.getAttributes().getValue(COUNT);
if (countValueString == null) {
throw new InvalidFormatException(
"The count attribute must be set!");
}
count = Integer.parseInt(countValueString);
} catch (NumberFormatException e) {
throw new InvalidFormatException("The count attribute '" + countValueString
+ "' must be a number!", e);
}
add(entry.getTokens());
setCount(entry.getTokens(), count);