private final Language myTemplateLanguage;
private static final ConcurrentMap<String, TemplateDataElementType> TEMPLATE_DATA_TO_LANG = ContainerUtil.newConcurrentMap();
private static TemplateDataElementType getTemplateDataElementType(Language lang) {
TemplateDataElementType result = TEMPLATE_DATA_TO_LANG.get(lang.getID());
if (result != null) return result;
TemplateDataElementType created = new TemplateDataElementType("HB_TEMPLATE_DATA", lang, CONTENT, OUTER_ELEMENT_TYPE);
TemplateDataElementType prevValue = TEMPLATE_DATA_TO_LANG.putIfAbsent(lang.getID(), created);
return prevValue == null ? created : prevValue;
}