Fixes "Error with UtilMisc.availableLocales() shows with Java 8" - https://issues.apache.org/jira/browse/OFBIZ-6917 I simply used the version introduced by Adrian at r1647873 which replaces DCL code with lazy-initializer class.