in serialization/src/main/java/org/apache/geode_examples/serialization/Example.java [43:61]
public static void main(String[] args) {
// connect to the locator using default port 10334
ClientCache cache = new ClientCacheFactory().addPoolLocator("127.0.0.1", 10334)
.set("log-level", "WARN")
.setPdxSerializer(
new ReflectionBasedAutoSerializer("org.apache.geode_examples.serialization.Country"))
.create();
// create a local region that matches the server region
Region<String, Country> region =
cache.<String, Country>createClientRegionFactory(ClientRegionShortcut.PROXY)
.create("example-region");
Example example = new Example(region);
example.insertValues();
example.printValues(example.getKeys());
cache.close();
}