code: public static Serializable toObject(byte[] bytes){
          Serializable obj = null;
          ObjectInputStream ois = null;
          try {
              ByteArrayInputStream bais = new ByteArrayInputStream(bytes);
              ois = new ObjectInputStream(bais);
              obj = (Serializable) ois.readObject();
          } catch (Exception e) {
              throw new RuntimeException(e);
          } finally {
              if (ois != null) {
                  try {
                      ois.close();
                  } catch (IOException e) {
                      throw new RuntimeException(e);
                  }
              }
          }
          return obj;
      }
docs: 将byte[]反序列化为Object
  
  @param bytes
  @return