in wildcard-method-selection/src/main/java/org/apache/struts/tutorials/wildcardmethod/service/PersonService.java [46:56]
private int getNewId() {
int newId = 0;
try {
newId = people.lastKey() + 1;
} catch (NoSuchElementException ex) {
log.info("Id value set to 0");
}
return newId;
}