@Override
 public void delete(Person p) throws MapperException {
   int count;
   try {
     count = PersonTDG.delete(p.getId(), p.getVersion());
   } catch (SQLException e) {
     throw new MapperException(e);
   }
   if (count == 0) {
     throw new LostUpdateException(
         "It appears that someone else may already have changed this person.");
   }
 }