code: public void saveAsPropertyBundle() throws UnsupportedEncodingException, CmsException, IOException {
  
          switch (m_bundleType) {
              case XML:
                  saveLocalization();
                  loadAllRemainingLocalizations();
                  createPropertyVfsBundleFiles();
                  saveToPropertyVfsBundle();
                  m_bundleType = BundleType.PROPERTY;
                  removeXmlBundleFile();
  
                  break;
              default:
                  throw new IllegalArgumentException(
                      "The method should only be called when editing an XMLResourceBundle.");
          }
  
      }
docs: Saves the loaded XML bundle as property bundle.
  @throws UnsupportedEncodingException thrown if localizations from the XML bundle could not be loaded correctly.
  @throws CmsException thrown if any of the interactions with the VFS fails.
  @throws IOException thrown if localizations from the XML bundle could not be loaded correctly.