@Override
  public AnonymousEntityDescription convertTo(
      ResolvedConceptReference source, AnonymousEntityDescription target) {
    if (StringUtils.isBlank(source.getCode()) || StringUtils.isBlank(source.getCodeNamespace())) {
      return target;
    }
    CodingScheme cs =
        codingSchemeService.getCodingSchemeByUriAndVersion(
            source.getCodingSchemeURI(), source.getCodingSchemeVersion());

    for (org.LexGrid.concepts.Comment c : source.getEntity().getComment()) {
      org.cts2.core.Comment comment = this.baseDozerBeanMapper.map(c, org.cts2.core.Comment.class);

      // process supported mappings
      if (cs != null) {
        if (comment.getFormat() != null && !StringUtils.isEmpty(comment.getFormat().getContent())) {
          SupportedDataType supportedDataType =
              DaoUtility.getURIMap(cs, SupportedDataType.class, comment.getFormat().getContent());
          if (supportedDataType != null) comment.getFormat().setMeaning(supportedDataType.getUri());
        }

        if (comment.getLanguage() != null
            && !StringUtils.isEmpty(comment.getLanguage().getContent())) {
          SupportedLanguage supportedLanguage =
              DaoUtility.getURIMap(cs, SupportedLanguage.class, comment.getLanguage().getContent());
          if (supportedLanguage != null)
            comment.getLanguage().setMeaning(supportedLanguage.getUri());
        }
      }
      target.addNote(comment);
    }
    return target;
  }
 private SupportedCodingScheme findCodingScheme(
     org.LexGrid.valueSets.ValueSetDefinition definition, String localId) {
   if (StringUtils.isBlank(localId)) {
     localId = definition.getDefaultCodingScheme();
   }
   return DaoUtility.getURIMap(definition.getMappings(), SupportedCodingScheme.class, localId);
 }
 private SupportedAssociation findAssociation(Mappings mappings, String localId) {
   return DaoUtility.getURIMap(mappings, SupportedAssociation.class, localId);
 }
 private SupportedProperty findProperty(Mappings mappings, String localId) {
   return DaoUtility.getURIMap(mappings, SupportedProperty.class, localId);
 }
 private SupportedNamespace findNamespace(Mappings mappings, String localId) {
   return DaoUtility.getURIMap(mappings, SupportedNamespace.class, localId);
 }