@SuppressWarnings("unchecked")
    public synchronized static Config build(final String factoryName, final Object... parameters) {
        try {
            LOGGER.info("Build the configuration from factory: {}", factoryName);

            val factory = (ConfigFactory) CommonHelper.getConstructor(factoryName).newInstance();
            return factory.build(parameters);
        } catch (final Exception e) {
            throw new TechnicalException("Cannot build configuration", e);
        }
    }
<p>build.</p>

@param factoryName a {@link String} object
@param parameters a {@link Object} object
@return a {@link Config} object
pac4j-core/src/main/java/org/pac4j/core/config/ConfigBuilder.java