Overrides ResourceBundle.getString. Adds some error checking to ensure that
we got a non-null key and resource bundle.

@param key Name portion of "name=value" pair.
@return rtn The resource string.
346046
public String getString(String key) throws MissingResourceException {
        // Error Checking Trace.  Ensure that we got a valid key
        if (key == null) {
            if (tc.isEventEnabled()) {

                // DGH20040823: Begin fix for defect 218797 - Source provided by Tom Musta
                // String msg = messages.getString("NLS.nullKey",
                //                                 "Null lookup key passed to NLS");
                String msg = getMessages().getString("NLS.nullKey",
                                                     "Null lookup key passed to NLS");
                // DGH20040823: End fix for defect 218797 - Source provided by Tom Musta
                Tr.warning(tc, msg);
            }
            return null;
        }
        // Error Checking Trace.  Ensure that we got a valid bundle.
        if (bundle == null) {
            if (tc.isEventEnabled()) {
                // DGH20040823: Begin fix for defect 218797 - Source provided by Tom Musta
                // String msg = messages.getString("NLS.noBundles",
                //                                 "Encountered an internal error. No valid bundles.");
                String msg = getMessages().getString("NLS.noBundles",
                                                     "Encountered an internal error. No valid bundles.");
                // DGH20040823: End fix for defect 218797 - Source provided by Tom Musta
                Tr.warning(tc, msg);
            }
            throw new MissingResourceException(bundleName, bundleName, key);
        }
        // Return Code.
        String rtn = null;
        // Get the resource (string).
        rtn = bundle.getString(key);
        return rtn;
    }
724583
public static String getResourceString(String key) {
        ResourceBundle bundle = FindbugsPlugin.getDefault().getResourceBundle();
        try {
            return bundle.getString(key);
        } catch (MissingResourceException e) {
            return key;
        }
    }
1309000
public char getChar( String key )
        throws MissingResourceException
    {
        ResourceBundle bundle = getBundle();
        String value = bundle.getString( key );

        if( 1 == value.length() )
        {
            return value.charAt( 0 );
        }
        else
        {
            throw new MissingResourceException( "Expecting a char value but got " + value,
                                                "java.lang.String",
                                                key
            );
        }
    }
1272910
public String getValue(String key) {
        KeyValue kv = getKV(key);
        return kv == null ? null : kv.getValue();
    }
564235
private String getResourceText(String key) {
        String text = null;
        if (key != null) {
            ResourceBundle bundle = null;

            // retrieve the resource bundle
            try {
                bundle = ResourceBundle.getBundle(DIST_EX_RESOURCE_BUNDLE_NAME);
            } catch (MissingResourceException e) {
                // do nothing
            }

            // if the resource bundle was successfully retrieved, get the specific text based
            // on the resource key
            if (bundle != null) {
                try {
                    text = bundle.getString(key);
                } catch (MissingResourceException e) {
                    // do nothing
                }
            }
        } else { // no key was provided
            // do nothing
        }
        return text;
    }
167397
@SuppressWarnings("unchecked")
  public String getString(String name) {
    return ((Value<String>) getValue(name)).get();
  }
803095
public static String getString(final String key) {

		String ret = '!' + key + '!';
		if (key != null) {
			String[] els = key.split("\\.", 2);
			if (els.length == 2) {
				String resourceName = els[0];
				ResourceBundle resource = getInstance().resources.get(resourceName);
				if (resource != null) {
					try {
						ret = resource.getString(els[1]);
					} catch (MissingResourceException e) {
						logger.debug("No resource for the key [{}]", key);
					}
				} else {
					logger.debug("No resource for [{}]", resource);
				}
			}
		}
		return ret;
	}
600972
@Override
	public String getString(String key, String defaultValue) {
		return this.backingConfig.getString(this.prefix + key, defaultValue);
	}
1109456
public <T> T get(RythmConfigurationKey key) {
        Object o = data.get(key);
        if (null == o) {
            o = key.getConfiguration(raw);
            if (null != o) {
                data.put(key, o);
            } else {
                data.put(key, RawData.NULL);
            }
        }
        if (o == RawData.NULL) {
            return null;
        } else {
            return (T) o;
        }
    }
100544
public String getStringValue(Enum key) {
    if (this._task.get(key) == null) {
      return "";
    } else {
     return this._task.get(key);
    }
  }
25432
public String getString(int key) {
        PebbleTuple tuple = getTuple(key, PebbleTuple.TupleType.STRING);
        if (tuple == null) {
            return null;
        }
        return (String) tuple.value;
    }
1097212
public String getText(String key, Object... args) throws MissingResourceException {
        ResourceBundle bundle = initRB();
        String message = bundle.getString(key);
        return MessageFormat.format(message, args);
    }
402311
public static String getText(String key, ResourceBundle bundle)
    {
        try
        {
            return  bundle.getString(key);
        }
        catch (MissingResourceException ex)
        {
            return key;
        }
    }
998496
@CheckResult @NonNull
  public Preference<String> getString(@NonNull String key) {
    return getString(key, DEFAULT_STRING);
  }
241458
private static String getInnerMapKey(final String key) {
        final int index = key.indexOf(".");
        return key.substring(index + 1);
    }
707957
public Content getResource(String key) {
        Content c = newContent();
        c.addContent(getText(key));
        return c;
    }
353561
String getResourceString(String key) {
        if (outputRB == null) {
            try {
                outputRB = ResourceBundle.getBundle(L10N_RB_NAME, locale);
            } catch (MissingResourceException mre) {
                error("Cannot find ResourceBundle: %s for locale: %s", L10N_RB_NAME, locale);
                return "";
            }
        }
        String s;
        try {
            s = outputRB.getString(key);
        } catch (MissingResourceException mre) {
            error("Missing resource: %s in %s", key, L10N_RB_NAME);
            return "";
        }
        return s;
    }