code: public static RestClientConfiguration fromConfiguration(Configuration config) throws ConfigurationException {
  		Preconditions.checkNotNull(config);
  
  		final SSLHandlerFactory sslHandlerFactory;
  		if (SSLUtils.isRestSSLEnabled(config)) {
  			try {
  				sslHandlerFactory = SSLUtils.createRestClientSSLEngineFactory(config);
  			} catch (Exception e) {
  				throw new ConfigurationException("Failed to initialize SSLContext for the REST client", e);
  			}
  		} else {
  			sslHandlerFactory = null;
  		}
  
  		final long connectionTimeout = config.getLong(RestOptions.CONNECTION_TIMEOUT);
  
  		final long idlenessTimeout = config.getLong(RestOptions.IDLENESS_TIMEOUT);
  
  		int maxContentLength = config.getInteger(RestOptions.CLIENT_MAX_CONTENT_LENGTH);
  
  		return new RestClientConfiguration(sslHandlerFactory, connectionTimeout, idlenessTimeout, maxContentLength);
  	}
docs: Creates and returns a new {@link RestClientConfiguration} from the given {@link Configuration}.
  
  @param config configuration from which the REST client endpoint configuration should be created from
  @return REST client endpoint configuration
  @throws ConfigurationException if SSL was configured incorrectly