}
public static Concept getConcept(TModelDetail tModelDetail, LifeCycleManager lifeCycleManager)
throws JAXRException
{
Concept concept = new ConceptImpl(lifeCycleManager);
List<TModel> tmodelList = tModelDetail.getTModel();
for (TModel tmodel : tmodelList) {
concept.setKey(lifeCycleManager.createKey(tmodel.getTModelKey()));
concept.setName(lifeCycleManager.createInternationalString(getLocale(tmodel.getName().getLang()),
tmodel.getName().getValue()));
Description desc = getDescription(tmodel);
if( desc != null ) {
concept.setDescription(lifeCycleManager.createInternationalString(getLocale(desc.getLang()),
desc.getValue()));
}
concept.addExternalIdentifiers(getExternalIdentifiers(tmodel.getIdentifierBag(), lifeCycleManager));
concept.addClassifications(getClassifications(tmodel.getCategoryBag(), lifeCycleManager));
}
return concept;
}