Source:
<code>protected void createIdentifierConceptIfNotExists(final String identifierId) throws ImportException { Concept identifierConcept = (Concept) Iterables.getOnlyElement(getComponents(Collections.singleton(identifierId)), null); if (identifierConcept == null) { final Concept identiferParentConcept = (Concept) Iterables.getOnlyElement(getComponents(Collections.singleton(getIdentifierParentConceptId(identifierId))), null); if (identiferParentConcept == null) { String message = MessageFormat.format("Reference set parent concept ''{0}'' not found in database.", getIdentifierParentConceptId(identifierId)); log("SNOMED CT import failed. " + message); throw new ImportException(message); } final SnomedEditingContext editingContext = getImportContext().getEditingContext(); identifierConcept = editingContext.buildDefaultConcept( identifierId, getUnindentifiedRefSetFSN(identifierId), identiferParentConcept); identifierConcept.getDescriptions().add( editingContext.buildDefaultDescription( getUnindentifiedRefSetPT(identifierId), Concepts.SYNONYM)); String languageRefSetId = editingContext.getLanguageRefSetId(); <START> final SnomedRefSet languageRefSet = editingContext.lookup(languageRefSetId, SnomedRefSet.class); <END> if (languageRefSet instanceof SnomedStructuralRefSet) { for (final Description description : identifierConcept.getDescriptions()) { final ComponentIdentifierPair<String> referencedComponentPair = SnomedRefSetEditingContext.createDescriptionTypePair(description.getId()); final ComponentIdentifierPair<String> acceptabilityPair = SnomedRefSetEditingContext.createConceptTypePair(Concepts.REFSET_DESCRIPTION_ACCEPTABILITY_PREFERRED); final String moduleId = identifierConcept.getModule().getId(); description.getLanguageRefSetMembers().add(editingContext.getRefSetEditingContext().createLanguageRefSetMember( referencedComponentPair, acceptabilityPair, moduleId, (SnomedStructuralRefSet) languageRefSet)); } } else { String message = "Unable to create proper language type reference set members for concept: " + identifierConcept; getLogger().warn(message); log(message); } getImportContext().getComponentLookup().addNewComponent(identifierConcept, identifierId); } }</code><technical_language>retrieve language reference set refset lookup SnomedImportContext here</technical_language>

Target:
protected void createIdentifierConceptIfNotExists(final String identifierId) throws ImportException { Concept identifierConcept = (Concept) Iterables.getOnlyElement(getComponents(Collections.singleton(identifierId)), null); if (identifierConcept == null) { final Concept identiferParentConcept = (Concept) Iterables.getOnlyElement(getComponents(Collections.singleton(getIdentifierParentConceptId(identifierId))), null); if (identiferParentConcept == null) { String message = MessageFormat.format("Reference set parent concept ''{0}'' not found in database.", getIdentifierParentConceptId(identifierId)); log("SNOMED CT import failed. {}", message); throw new ImportException(message); } final SnomedEditingContext editingContext = getImportContext().getEditingContext(); identifierConcept = editingContext.buildDefaultConcept( identifierId, getUnindentifiedRefSetFSN(identifierId), identiferParentConcept); identifierConcept.getDescriptions().add( editingContext.buildDefaultDescription( getUnindentifiedRefSetPT(identifierId), Concepts.SYNONYM)); String languageRefSetId = editingContext.getLanguageRefSetId(); final SnomedRefSet languageRefSet = editingContext.lookup(languageRefSetId, SnomedRefSet.class); if (languageRefSet instanceof SnomedStructuralRefSet) { for (final Description description : identifierConcept.getDescriptions()) { final ComponentIdentifierPair<String> referencedComponentPair = SnomedRefSetEditingContext.createDescriptionTypePair(description.getId()); final ComponentIdentifierPair<String> acceptabilityPair = SnomedRefSetEditingContext.createConceptTypePair(Concepts.REFSET_DESCRIPTION_ACCEPTABILITY_PREFERRED); final String moduleId = identifierConcept.getModule().getId(); description.getLanguageRefSetMembers().add(editingContext.getRefSetEditingContext().createLanguageRefSetMember( referencedComponentPair, acceptabilityPair, moduleId, (SnomedStructuralRefSet) languageRefSet)); } } else { String message = "Unable to create proper language type reference set members for concept: " + identifierConcept; getLogger().warn(message); log(message); } getImportContext().getComponentLookup().addNewComponent(identifierConcept, identifierId); } }