@SuppressWarnings("unchecked")
  public static <T> T deserialize(String name, String strObject) {
    try {
      byte[] bytes = Base64.getDecoder().decode(strObject);
      return (T) new ObjectInputStream(new ByteArrayInputStream(bytes)).readObject();
    } catch (Exception e) {
      String errMsg = "Failed to deserialize " + name;
      throw new SamzaException(errMsg, e);
    }
  }
Helper method to deserialize Java objects from Base64 strings
@param name name of the object (for error reporting)
@param strObject base64 string of the serialized object
@return deserialized object instance
@param <T> type of the object
samza-api/src/main/java/org/apache/samza/table/utils/SerdeUtils.java