public static void register(Class instantiatorClass, Class instantiatedClass, int id,
      boolean distribute, EventID eventId, ClientProxyMembershipID context) {
    Instantiator inst = newInstance(instantiatorClass, instantiatedClass, id);
    // This method is only called when server connection and CacheClientUpdaterThread
    inst.setEventId(eventId);
    inst.setContext(context);
    _register(inst, distribute);
  }
Creates a new {@code Instantiator} with the given class and id and
{@linkplain #register(Instantiator, boolean) registers} it with the data serialization
framework.

This method is only called when server connection and CacheClientUpdaterThread

@throws IllegalArgumentException The instantiator cannot be created
@throws IllegalStateException The instantiator cannot be registered
geode-core/src/main/java/org/apache/geode/internal/InternalInstantiator.java