}
public static Concept getConcept(TModelDetail tm, LifeCycleManager lcm)
throws JAXRException
{
Concept concept = new ConceptImpl(lcm);
TModel[] tc = tm.getTModelArray();
TModel tmodel = tc != null && tc.length > 0 ? tc[0] : null;
if (tmodel != null) {
concept.setKey(lcm.createKey(tmodel.getTModelKey()));
concept.setName(lcm.createInternationalString(getLocale(tmodel.getName().getLang()), tmodel.getName().getStringValue()));
Description desc = getDescription(tmodel);
if( desc != null ) {
concept.setDescription(lcm.createInternationalString(getLocale(desc.getLang()), desc.getStringValue()));
}
concept.addExternalIdentifiers(getExternalIdentifiers(tmodel.getIdentifierBag(), lcm));
concept.addClassifications(getClassifications(tmodel.getCategoryBag(), lcm));
}
return concept;
}