public static void register(Class instantiatorClass, Class instantiatedClass, int id,
      boolean distribute) {

    if (checkForThread()) {
      Instantiator inst = newInstance(instantiatorClass, instantiatedClass, id);
      _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.

@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