title: forName returned value as Type
body: <p>Can I use Class value returned by Class.forName as a type ?</p>
  
  <p>e.g.</p>
  
  <pre><code>String hdrClassName = "generated.MessageHeader";
  Class msgHdrClass= Class.forName(hdrClassName);
  JAXBElement&lt;msgHdrClass&gt; jaxbWrapperElement1 = (JAXBElement&lt;msgHadrClass&gt;)jaxbUnmarshaller.unmarshal(new File("./src/MessageHeader.xml"));
  </code></pre>
  
  <p>If not, Is there a way to achieve "using class name passed at run time as type in java"?</p>