code: private Properties getLocalizedBundle(CmsObject cms, String path) throws CmsException, IOException {
  
          CmsResource bundleResource = cms.readResource(path
              + CmsSiteManager.MACRO_FOLDER
              + "/"
              + getAvailableLocalVariant(cms, path + CmsSiteManager.MACRO_FOLDER + "/", CmsSiteManager.BUNDLE_NAME));
  
          Properties ret = new Properties();
          InputStreamReader reader = new InputStreamReader(
              new ByteArrayInputStream(cms.readFile(bundleResource).getContents()),
              StandardCharsets.UTF_8);
          ret.load(reader);
  
          return ret;
      }
docs: Gets localized property object.<p>
  
  @param cms CmsObject
  @param path of resource
  @return Properties object
  @throws CmsException exception
  @throws IOException exception