code: private static TBase<?, ?> newTInstance(Class<?> tClass) {
      try {
        return (TBase<?, ?>) tClass.newInstance();
      } catch (Exception e) { // not expected.
        throw new RuntimeException(e);
      }
    }
docs: return an instance assuming tClass is a Thrift class