code: public Optional<? extends Style> loadStyle(
              final Configuration configuration,
              @Nonnull final ClientHttpRequestFactory clientHttpRequestFactory,
              final String styleString) {
          if (styleString != null) {
              for (StyleParserPlugin plugin: this.plugins) {
                  final Optional<? extends Style> style = plugin.parseStyle(
                          configuration, clientHttpRequestFactory, styleString);
                  if (style.isPresent()) {
                      if (LOGGER.isDebugEnabled()) {
                          try {
                              final SLDTransformer transformer = new SLDTransformer();
                              final StyleFactory styleFactory = CommonFactoryFinder.getStyleFactory();
                              final UserLayer userLayer = styleFactory.createUserLayer();
                              userLayer.addUserStyle(style.get());
                              final StyledLayerDescriptor sld = styleFactory.createStyledLayerDescriptor();
                              sld.addStyledLayer(userLayer);
                              if (LOGGER.isDebugEnabled()) {
                                  LOGGER.debug("Loaded style from: \n\n '{}': \n\n{}",
                                               styleString, transformer.transform(sld));
                              }
                          } catch (Exception e) {
                              LOGGER.debug(
                                      "Loaded style from: \n\n '{}' \n\n<Unable to transform it to xml>",
                                      styleString, e);
                          }
                      }
                      return style;
                  }
              }
          }
          return Optional.empty();
      }
docs: Load style using one of the plugins or return Optional.empty().
  
  @param configuration the configuration for the current request.
  @param clientHttpRequestFactory a factory for making http requests
  @param styleString the style to load.