private Map<String, List<TranslateableText>> divideByFileType(List<TranslateableText> texts) {
   Map<String, List<TranslateableText>> fileMap =
       new LinkedHashMap<String, List<TranslateableText>>();
   for (TranslateableText text : texts) {
     addToMap(fileMap, text, text.getFileType());
   }
   return fileMap;
 }
  public ModelElement getModelElement(String modelIdentifier, String rootElementIdentifier) {
    List<TranslateableText> modelElementTexts = new ArrayList<TranslateableText>();
    List<TranslateableText> texts = translateableTextDAO.getTexts(modelIdentifier);
    for (TranslateableText text : texts) {
      if (text.getRootElementIdentifier().equals(rootElementIdentifier)) {
        modelElementTexts.add(text);
      }
    }

    TranslateableText firstText = modelElementTexts.get(0);
    return new ModelElement(
        firstText.getFileType(),
        firstText.getFileName(),
        status(statusFr(modelElementTexts)),
        status(statusIt(modelElementTexts)),
        status(statusEn(modelElementTexts)),
        modelElementTexts);
  }