code: public static CmsGalleryConfigurationJSO parseConfiguration(String conf) {
  
          if (CmsStringUtil.isEmptyOrWhitespaceOnly(conf)) {
              conf = "{}";
          }
          return (CmsGalleryConfigurationJSO)CmsDomUtil.parseJSON(conf);
      }
docs: Parses the given JSON configuration string.<p>
  
  @param conf the JSON configuration string
  
  @return the gallery configuration object