class VitamServerFactory {

    public static VitamServer newVitamServerByJettyConf(final String jettyConfigFile)
        throws VitamApplicationServerException {
        try {
            ParametersChecker.checkParameter("jetty config file", jettyConfigFile);
            return new BasicVitamServer(jettyConfigFile);
        } catch (final IllegalArgumentException e) {
            LOGGER.error(
                "Jetty server can not run with this jetty config file : " + jettyConfigFile + " " + e.getMessage(),
                e);
            throw new VitamApplicationServerException(
                "Jetty server can not run with this jetty config file : " + jettyConfigFile);
        }
    }

    private  VitamServerFactory();

}