private void extractLabels(CodeList codeList, Cursor crs, PersistedCodeListItem item) {
   Survey survey = codeList.getSurvey();
   item.removeAllLabels();
   List<String> languages = survey.getLanguages();
   String[] labelColumnNames = {
     OFC_CODE_LIST.LABEL1.getName(), OFC_CODE_LIST.LABEL2.getName(), OFC_CODE_LIST.LABEL3.getName()
   };
   for (int i = 0; i < languages.size(); i++) {
     String lang = languages.get(i);
     String label = crs.getString(crs.getColumnIndex(labelColumnNames[i]));
     item.setLabel(lang, label);
     if (i >= 3) break;
   }
 }
 private void extractDescriptions(CodeList codeList, Cursor crs, PersistedCodeListItem item) {
   Survey survey = codeList.getSurvey();
   item.removeAllDescriptions();
   List<String> languages = survey.getLanguages();
   String[] descrColumnNames = {
     OFC_CODE_LIST.DESCRIPTION1.getName(),
     OFC_CODE_LIST.DESCRIPTION2.getName(),
     OFC_CODE_LIST.DESCRIPTION3.getName()
   };
   for (int i = 0; i < languages.size(); i++) {
     String lang = languages.get(i);
     String label = crs.getString(crs.getColumnIndex(descrColumnNames[i]));
     item.setDescription(lang, label);
     if (i >= 3) break;
   }
 }