class Translator {

    public String getString(String key) {
        if (key == null) {
            throw new NullPointerException("Key is null");
        }
        if (localizationDisabled) {
            return key;
        }
        if (bundle == null) {
            return key;
        }
        try {
            return bundle.getString(key);
        } catch (MissingResourceException e) {
            return key;
        }
    }

    private  Translator();

}