protected String resolveLanguage(String language,String fallbackLang){
  List<DetectedLanguage> l=new ArrayList<>();
  l.add(new DetectedLanguage(language,1.0));
  return resolveLanguage(l,fallbackLang);
}

protected String resolveLanguage ( String language , String fallbackLang ) { List < DetectedLanguage > l = new ArrayList < > ( ) ; l . add ( new DetectedLanguage ( language , 1.0 ) ) ; return resolveLanguage ( l , fallbackLang ) ; }
chooses a language based on the list of candidates detected
