@Override
  public final void readExternal(final ObjectInput in) throws IOException, ClassNotFoundException {
    final Object data = in.readObject();
    if (data.getClass().isArray()) {
      this.userBeanBytes = (byte[]) data;
    } else {
      this.userBean = data;
    }
  }
@author Eduardo Macarron
@author Franta Mejta
src/main/java/org/apache/ibatis/executor/loader/AbstractSerialStateHolder.java