protected TypeRegistration createTypeRegistration(boolean client) {
    TypeRegistration delegateTmp;
    if (client) {
      delegateTmp = new ClientTypeRegistration(cache);
    } else {
      delegateTmp = new PeerTypeRegistration(cache);
    }
    return delegateTmp;
  }
Actually initialize the delegate. This is method is called when the type registry is used. At
that time, it creates the registry.
geode-core/src/main/java/org/apache/geode/pdx/internal/LonerTypeRegistration.java