code: public static CmsFlexBucketConfiguration loadFromVfsFile(CmsObject cms, String path) throws CmsException {
  
          if (!cms.existsResource(path)) {
              return null;
          }
          CmsResource configRes = cms.readResource(path);
          if (configRes.isFolder()) {
              return null;
          }
          CmsFile configFile = cms.readFile(configRes);
          String encoding = CmsFileUtil.getEncoding(cms, configRes);
          Properties props = new Properties();
          try {
              props.load(new InputStreamReader(new ByteArrayInputStream(configFile.getContents()), encoding));
              return loadFromProperties(props);
          } catch (IOException e) {
              LOG.error(e.getLocalizedMessage(), e);
          }
          return null;
      }
docs: Loads a flex bucket configuration from the OpenCms VFS.<p>
  
  @param cms the CMS context to use for VFS operations
  @param path the path of the resource
  
  @return the flex bucket configuration
  
  @throws CmsException if something goes wrong