Source:
<code>public ComponentValidationDiagnostic validate(final IBranchPath branchPath, final SnomedConceptIndexEntry concept) { final SnomedDescriptions descriptions = SnomedRequests.prepareSearchDescription() .filterByActive(true) .filterByType(Concepts.FULLY_SPECIFIED_NAME) .filterByConceptId(concept.getId()) .build(branchPath.getPath()) .executeSync(getBus()); if (descriptions.getTotal() > 1) { <START> final List<SnomedDescriptionIndexEntry> snomedDescriptionIndexEntries = SnomedDescriptionIndexEntry.fromDescriptions(descriptions); <END> final Multimap<String, String> languageRefsetIdToDescriptionIdMap = HashMultimap.create(); for (final SnomedDescriptionIndexEntry indexEntry : snomedDescriptionIndexEntries) { final Set<String> languageRefsetIdsWithPreferredMember = Maps.filterValues(indexEntry.getAcceptabilityMap(), Predicates.equalTo(Acceptability.PREFERRED)).keySet(); for (final String id : languageRefsetIdsWithPreferredMember) { languageRefsetIdToDescriptionIdMap.put(id, indexEntry.getId()); } } final List<ComponentValidationDiagnostic> diagnostics = newArrayList(); for (final Entry<String, Collection<String>> entry : languageRefsetIdToDescriptionIdMap.asMap().entrySet()) { if (entry.getValue().size() > 1) { diagnostics.add(new ComponentValidationDiagnosticImpl(concept.getId(), createErrorMessage(concept, entry, branchPath), ID, SnomedTerminologyComponentConstants.CONCEPT_NUMBER, error())); } } if (!diagnostics.isEmpty()) { return new ComponentValidationDiagnosticImpl(concept.getId(), ID, SnomedTerminologyComponentConstants.CONCEPT_NUMBER, diagnostics); } } return createOk(concept.getId(), ID, SnomedTerminologyComponentConstants.CONCEPT_NUMBER); }</code><technical_language>Is necessary convert SnomedDescriptionIndexEntry</technical_language>

Target:
public ComponentValidationDiagnostic validate(final IBranchPath branchPath, final SnomedConceptIndexEntry concept) { final SnomedDescriptions descriptions = SnomedRequests.prepareSearchDescription() .filterByActive(true) .filterByType(Concepts.FULLY_SPECIFIED_NAME) .filterByConceptId(concept.getId()) .build(branchPath.getPath()) .executeSync(getBus()); if (descriptions.getTotal() > 1) { final Multimap<String, String> languageRefsetIdToDescriptionIdMap = HashMultimap.create(); for (final ISnomedDescription description : descriptions) { final Set<String> languageRefsetIdsWithPreferredMember = Maps.filterValues(description.getAcceptabilityMap(), Predicates.equalTo(Acceptability.PREFERRED)).keySet(); for (final String id : languageRefsetIdsWithPreferredMember) { languageRefsetIdToDescriptionIdMap.put(id, description.getId()); } } final List<ComponentValidationDiagnostic> diagnostics = newArrayList(); for (final Entry<String, Collection<String>> entry : languageRefsetIdToDescriptionIdMap.asMap().entrySet()) { if (entry.getValue().size() > 1) { diagnostics.add(new ComponentValidationDiagnosticImpl(concept.getId(), createErrorMessage(concept, entry, branchPath), ID, SnomedTerminologyComponentConstants.CONCEPT_NUMBER, error())); } } if (!diagnostics.isEmpty()) { return new ComponentValidationDiagnosticImpl(concept.getId(), ID, SnomedTerminologyComponentConstants.CONCEPT_NUMBER, diagnostics); } } return createOk(concept.getId(), ID, SnomedTerminologyComponentConstants.CONCEPT_NUMBER); }