private ICharmTemplate getNativeCharmTemplate(ITemplateRegistry registry) {
   IBasicCharacterData basicCharacterContext = context.getBasicCharacterContext();
   ITemplateType templateType = basicCharacterContext.getTemplateType();
   ICharacterTemplate template = registry.getTemplate(templateType);
   IMagicTemplate magicTemplate = template.getMagicTemplate();
   return magicTemplate.getCharmTemplate();
 }
 private ICharmTemplate getCharmTemplate(ITemplateRegistry registry, ICharacterType type) {
   ICharacterTemplate defaultTemplate = registry.getDefaultTemplate(type);
   if (defaultTemplate == null) {
     return null;
   }
   return defaultTemplate.getMagicTemplate().getCharmTemplate();
 }
 private ICharmTemplate getNativeCharmTemplate(ITemplateRegistry registry) {
   IBasicCharacterData basicCharacterContext = context.getBasicCharacterContext();
   ITemplateType templateType = basicCharacterContext.getTemplateType();
   IExaltedEdition edition = basicCharacterContext.getRuleSet().getEdition();
   ICharacterTemplate template = registry.getTemplate(templateType, edition);
   IMagicTemplate magicTemplate = template.getMagicTemplate();
   return magicTemplate.getCharmTemplate();
 }
 private ICharmTemplate getCharmTemplate(ITemplateRegistry registry, ICharacterType type) {
   ICharacterTemplate defaultTemplate =
       registry.getDefaultTemplate(type, context.getBasicCharacterContext().getEdition());
   if (defaultTemplate == null || defaultTemplate instanceof IUnsupportedTemplate) {
     return null;
   }
   return defaultTemplate.getMagicTemplate().getCharmTemplate();
 }