title: Deserialize byte array into class whose name is given as String
body: <p>I have data that is serialized from a java object(there can be different types of objects), I also have the fully qualified class name of the type of the serialized data in String format.
  Now I want a generic method(non-generic already working) to which I will pass the String formatted class name and byte array data and in return, it will return the deserialized class object. somewhat similar to below signature</p>
  
  <pre><code>public &lt;T&gt; T convertByteArrayToObject(String className, byte[] data);
  </code></pre>
  
  <p>eg, If I pass <code>convertByteArrayToObject("java.lang.String", [65, 66, 67])</code>;</p>
  
  <p>then it should return "ABC" as String object(but custom types should also be applicable).</p>
  
  <p>Thanks</p>