String cfName = System.getProperty("org.eclipse.jetty.nosql.memcached.clientFactory", "default").trim().toLowerCase();
AbstractMemcachedClientFactory clientFactory;
if (cfName.contains("spy")) {
if (cfName.contains("binary")) {
if (cfName.contains("heroku")) {
clientFactory = new HerokuSpyMemcachedClientFactory();
} else {
clientFactory = new BinarySpyMemcachedClientFactory();
}
} else {
clientFactory = new SpyMemcachedClientFactory();