public static synchronized void register(Instantiator instantiator) {
    InternalInstantiator.register(instantiator, true);
  }
Registers a {@code DataSerializable} class with the data serialization framework. This method
is usually invoked from the static initializer of a class that implements
{@code DataSerializable}.

@param instantiator An {@code Instantiator} whose {@link #newInstance} method is invoked when
       an object is data deserialized.

@throws IllegalStateException If class {@code c} is already registered with a different class
        id, or another class has already been registered with id {@code classId}
@throws NullPointerException If {@code instantiator} is {@code null}.
geode-core/src/main/java/org/apache/geode/Instantiator.java