@Override
  public void creatingPersistentRegion() {
    // Anything is allowed until the registry is in use.
    if (!typeRegistryInUse) {
      return;
    }
    checkAllowed(hasGatewaySender(), true);
  }
For bug #43690 we cannot use shared sockets when doing pdx type registration
geode-core/src/main/java/org/apache/geode/pdx/internal/PeerTypeRegistration.java