private static Object convertId(int id, boolean asInteger) {
    if (asInteger) {
      return id;
    }
    return (byte) id;
  }
Reflectively instantiates an instance of {@code Instantiator}.

@param instantiatorClass The implementation of {@code Instantiator} to instantiate
@param instantiatedClass The implementation of {@code DataSerialization} that will be produced
       by the {@code Instantiator}

@throws IllegalArgumentException If the class can't be instantiated
geode-core/src/main/java/org/apache/geode/internal/InternalInstantiator.java