class CuratorACLProviderFactory {

    public ACLProvider create(ZooKeeperClientConfig config){
        return StringUtils.equalsIgnoreCase(config.getAuthType(),SASL_AUTH_SCHEME) ? new SaslACLProvider(config) : new DefaultACLProvider();
    }

}