Instead of using standard methods of deciding which locale should be used
when loading a resource, Sakai tools are requested to go through the Sakai-specific
ResourceLoader class, which lets Sakai-specific settings such as site
preferences be taken into account.
Currently the ResourceLoader functionality is not behind an
interface, and so direct references to the class will drag in dependencies
on framework features. To keep the Sakai JSF tag library self-sufficient,
this utility class uses JavaBean-style introspection to load and use
the ResourceLoader class if it's available, or to fall back to the standard
UIViewRoot "getLocale()" method.
Note that we only use the "getLocale()" method in ResourceLoader.
For details, see the comments to SAK-6886.