private void setBonusPoints(GenericCharacterTemplate characterTemplate, Element creationElement) throws PersistenceException { Element bonusPointsElement = creationElement.element("bonusPointCosts"); if (bonusPointsElement == null) { return; } BonusPointCostTemplateParser parser = new BonusPointCostTemplateParser(registryCollection.getBonusPointTemplateRegistry()); GenericBonusPointCosts bonusPoints = parser.parseTemplate(bonusPointsElement); characterTemplate.setBonusPointCosts(bonusPoints); }