code: private Map<String, String> getMessagesForLocale() {
  
          Map<Locale, Map<String, String>> data = getData();
          if (data == null) {
              return Collections.emptyMap();
          }
          List<Locale> available = new ArrayList<Locale>(data.keySet());
          Locale bestMatchingLocale = OpenCms.getLocaleManager().getBestMatchingLocale(
              getLocale(),
              OpenCms.getLocaleManager().getDefaultLocales(),
              available);
          Map<String, String> bundleForLocale = data.get(bestMatchingLocale);
          if (bundleForLocale == null) {
              return Collections.emptyMap();
          } else {
              return Collections.unmodifiableMap(bundleForLocale);
          }
      }
docs: Returns the message data for this bundle's locale.<p>
  
  @return the message data for this bundle's locale