extended method getLocaleCode and added javadoc.