*/
public static void warningOccured(final Context context, final Class<?> classe, final String method,
final Class<? extends IndexedResourceBundle> resources, final short key, final Object... arguments)
{
final Locale locale = context != null ? context.getLocale() : null;
final IndexedResourceBundle bundle;
if (resources == Errors.class) {
bundle = Errors.getResources(locale);
} else if (resources == Messages.class) {
bundle = Messages.getResources(locale);
} else {
throw new IllegalArgumentException(String.valueOf(resources));
}
final LogRecord warning = bundle.getLogRecord(Level.WARNING, key, arguments);
warning.setSourceClassName(classe.getCanonicalName());
warning.setSourceMethodName(method);
warningOccured(context, warning);
}