code: private void _badType(int type, Object value)
      {
          if (type < 0) {
              throw new IllegalStateException(String.format(
                      "Internal error: missing BeanDefinition for id %d (class %s)",
                      type, value.getClass().getName()));
          }
          String typeDesc = (value == null) ? "NULL" : value.getClass().getName();
          throw new IllegalStateException(String.format("Unsupported type: %s (%s)", type, typeDesc));
      }
docs: /*
  ********************************************************************
  /* Other internal methods
  ********************************************************************