TRUNK-3142: Fixed LocaleUtility to work with JDK 7