}
public static String getTextInCurrentUserLocale(String key, Object... parameters) {
JiraAuthenticationContext context = ComponentAccessor.getJiraAuthenticationContext();
if (context == null) logger.warn("No JIRA auth context: maybe it is a plugin system 2 plugin now? Text will be formatted in the JIRA default locale.");
User user = context == null ? null : context.getLoggedInUser();
return getText(null, user, key, parameters);
}