public static String parse(String language) {

        // Return null if no language is provided
        if (language == null || language.isEmpty())
            return null;

        // Otherwise, assume language is already a valid language ID
        return language;

    }
Parses the given string into a language ID string. As any string may be
a valid language ID as long as it has a corresponding translation, the
only transformation currently performed by this function is to ensure
that a blank language string is parsed into null.

@param language
    The language string to parse, which may be null.

@return
    The ID of the language corresponding to the given string, or null if
    if the given language string was null or blank.
guacamole-ext/src/main/java/org/apache/guacamole/form/LanguageField.java