Pdx serializing in replicated region using ClientCache
<p>I have a problem with PDX serialization on a remote Geode instance when using SB to create a Geode client cache as -></p>

<pre><code>@Configuration
public class GeodeClientConfiguration {

@Bean
ClientCache cache() {
    return new ClientCacheFactory()
        .setPdxPersistent(true)
        .setPdxDiskStore("foo")
        .setPdxReadSerialized(true)
        .setPdxSerializer(new ReflectionBasedAutoSerializer(false, "foo.EpgProgram"))
        .create();
}

@Bean
Region&lt;String, List&lt;EpgProgram&gt;&gt; testRegion(final ClientCache cache) {
    return cache.&lt;String, List&lt;EpgProgram&gt;&gt; getRegion("schedule");
}
</code></pre>

<p>The cache.xml looks like -></p>

<pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;client-cache
    xmlns="http://geode.apache.org/schema/cache"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://geode.apache.org/schema/cache
                    http://geode.apache.org/schema/cache/cache-1.0.xsd"
    version="1.0"&gt;
&lt;pool name="serverPool"&gt;
    &lt;locator host="localhost" port="10334"/&gt;
&lt;/pool&gt;
&lt;region name="schedule"  refid="CACHING_PROXY"&gt;
    &lt;region-attributes pool-name="serverPool"
            scope="global" /&gt;
&lt;/region&gt;
</code></pre>

<p></p>

<p>In Gfsh I have created a region as </p>

<pre><code>create region --name=/schedule --type=REPLICATE_PERSISTENT
</code></pre>

<p>When adding a List of EpgProgram to the region during testing in the method</p>

<pre><code>public List&lt;EpgProgram&gt; getScheduleFromWhatson(String channel, LocalDate broadcastDate, Boolean expand) throws RestClientException, URISyntaxException {
    List&lt;EpgProgram&gt; programs = transform(whatsOnServiceInternal.getScheduleFromWhatson(channel, broadcastDate), expand);
    schedule.put(channel, programs);
    return programs;
}
</code></pre>

<p>The pdx instance seems to get generated using reflection from what I can see from the info trace -></p>

<pre><code>[info 2016/12/09 11:32:33.361 CET &lt;http-nio-8080-exec-1&gt; tid=0xc8] Auto serializer generating type for class dk.dr.epg.core.EpgProgram for fields: 
printable: private boolean dk.dr.epg.core.EpgProgram.printable
live: private boolean dk.dr.epg.core.EpgProgram.live
rerun: private boolean dk.dr.epg.core.EpgProgram.rerun
</code></pre>

<p>But just after that I get an exception -></p>

<pre><code>org.apache.geode.pdx.PdxInitializationException: The PDX metadata must be persistent in a member that has persistent data. See CacheFactory.setPdxPersistent.
</code></pre>

<p>Have missed any other place where I have to set Pdx persistense ??</p>

<p>Geode version: 1.0.0-incubating.</p>