public boolean handle(MenuItem item) throws MenuModelVisitorException {
assertNotNull("Cannot visit null menu items", item);
itemCount++;
if (itemCount == throwOnItemCount) {
throw new MenuModelVisitorException("thrown at item count " +
itemCount);
}
return (itemCount < itemLimit);
}