* instance already exists for it.
*/
public NaturalLanguage makeNaturalLanguage(
final String languageCode) {
final Language iso639 = Language.findFromAlpha(languageCode);
final NaturalLanguage existingLang = this.getNaturalLanguage(iso639);
if (existingLang != null) {
/* If the instance already exists, don't return a new one for the
* same language code. */
return null;
}
final NaturalLanguage newLang = new NaturalLanguage();
/* TODO: It is ugly to expose this instance before it has been parsed.
* Instead we need to add a concept of "locking" to this class that
* will make it effectively immutable, and register it at that time
* instead of now. */
this.languages.put(iso639, newLang);