catch (FileNotFoundException e) {
throw new ServiceException("Trainer file not found: " + getData());
}
Trainer trainer = new Trainer(getData());
trainer.loadXml(trainerData);
if (!player.record().getTrainer(trainer.id())) {
PlayerManager.addActivity(player, new Battle(player, trainer));
}
}