Get an annotation description string. This is a format pattern which will
describe a BugAnnotation in the context of a particular bug instance. Its
single format argument is the BugAnnotation.

@param key
the annotation description to retrieve
491243
public String getAnnotationDescription(String key) {
        try {
            return annotationDescriptionBundle.getString(key);
        } catch (MissingResourceException mre) {
            if (DEBUG) {
                return "TRANSLATE(" + key + ") (param={0}}";
            } else {
                try {
                    return englishAnnotationDescriptionBundle.getString(key);
                } catch (MissingResourceException mre2) {
                    return key + " {0}";
                }
            }
        }
    }
1211639
public static final String getMessage(String key, Object... args) {
        return NLS.getFormattedMessage(key, args, key);
    }
32394
@Override
    public String tagKey(String key) {
        return KEY_CLEANUP_PATTERN.matcher(delegate.tagKey(key)).replaceAll("_");
    }
220961
public String get(String key) {
        try {
            Field field;
            field = this.getClass().getField(key);
            return (String) field.get(this);
        } catch(NoSuchFieldException e) {
            return (String) antifraud_info.get(key);
        } catch(IllegalAccessException e) {
            return "";
        }
    }
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;
	}
1156370
public String getFormatted(String key, String argument) {
        return MessageFormat.format(resource.getString(key), new Object[] {argument});
    }
485188
public static String getEOReferenceStringFromAnnotation(OpenEngSBForeignKey key) {
        return String.format("%s%s:%s", REFERENCE_PREFIX, key.modelType(), key.modelVersion().toString());
    }
1073133
@Deprecated
    public @Nonnull
    String getMessage(String key) {
        BugPattern bugPattern = DetectorFactoryCollection.instance().lookupBugPattern(key);
        if (bugPattern == null) {
            return L10N.getLocalString("err.missing_pattern", "Error: missing bug pattern for key") + " " + key;
        }
        return bugPattern.getAbbrev() + ": " + bugPattern.getLongDescription();
    }
841368
public static String getFormattedString(String key, Object... arguments) {
		// échappement des quotes qui sont des caractères spéciaux pour MessageFormat
		final String string = getString(key).replace("'", "''");
		return new MessageFormat(string, getCurrentLocale()).format(arguments);
	}
306299
protected String innerGetText(String key) {
    if (key == null) return "";
    Set<String> checked = new HashSet<String>(5);
    // search up class hierarchy
    String msg = findMessage(clazz, key, checked);
    if (msg != null) return msg;

    if (EntityDrivenAction.class.isAssignableFrom(clazz)) {
      ActionContext context = ActionContext.getContext();
      // search up model's class hierarchy
      ActionInvocation actionInvocation = context.getActionInvocation();
      // ActionInvocation may be null if we're being run from a Sitemesh filter
      if (actionInvocation != null) {
        Object action = actionInvocation.getAction();
        if (action instanceof EntityDrivenAction) {
          String entityName = ((EntityDrivenAction) action).getEntityName();
          if (entityName != null) {
            msg = findPackageMessage(entityName, key, checked);
            if (msg != null) return msg;
          }
        }
      }
    }

    // see if it's a child property
    int idx = key.indexOf(".");
    if (idx > 0) {
      String prop = key.substring(0, idx);
      Object obj = valueStack.findValue(prop);
      if (null != obj && !prop.equals("action")) {
        Class<?> aClass = obj.getClass();
        String newKey = key;
        while (null != aClass) {
          msg = findMessage(aClass, newKey, new HashSet<String>());
          if (null == msg) {
            int nextIdx = newKey.indexOf(".", idx + 1);
            if (nextIdx == -1) break;
            prop = newKey.substring(idx + 1, nextIdx);
            newKey = newKey.substring(idx + 1);
            idx = nextIdx;
            if (Strings.isNotEmpty(prop)) aClass = PropertyUtils.getPropertyType(aClass, prop);
            else aClass = null;
          } else {
            return msg;
          }
        }
      }
    }
    return registry.getDefaultText(key, locale);
  }
69946
protected String getRequestUrl(String key) throws Exception {
        String result = "";
        try {
            result = this.methods.get(key)[0];
        } catch (Exception ex) {
            throw new Exception("Unknown method key: " + key);
        }
        return result;
    }
843437
public String _(String key, Object... args) {
//        JellyBuilder b = (JellyBuilder)getDelegate();

        ResourceBundle resourceBundle = getResourceBundle();

        // notify the listener if set
//        InternationalizedStringExpressionListener listener = (InternationalizedStringExpressionListener) Stapler.getCurrentRequest().getAttribute(LISTENER_NAME);
//        if(listener!=null)
//            listener.onUsed(this, args);

        args = Stapler.htmlSafeArguments(args);

        return resourceBundle.format(LocaleProvider.getLocale(), key, args);
    }
25432
public String getString(int key) {
        PebbleTuple tuple = getTuple(key, PebbleTuple.TupleType.STRING);
        if (tuple == null) {
            return null;
        }
        return (String) tuple.value;
    }
278546
static String getFormattedString(String key, Object... arguments) {
		return I18N.getFormattedString(key, arguments);
	}
332046
public String getStringProperty(String key) {
    JsonElement propertyKey = properties().get(key);
    return propertyKey == null ? null : propertyKey.getAsString();
  }
1219695
public String getInvalidMessage(String key) {
        return invalidMessageOverride == null ? messageMixin.lookup(key, messageValueArgs) : MessageFormat.format(
                invalidMessageOverride, messageValueArgs);
    }
887739
public static RequestProbeTransformDescriptor getObjForInstrumentation(
			String key) {
		RequestProbeTransformDescriptor requestProbeTransformDescriptor = RequestProbeBCIManagerImpl
				.getRequestProbeTransformDescriptors().get(key);
		return requestProbeTransformDescriptor;
	}