title: Creating an instance using the class name and calling constructor
body: <p>Is there a way to create an instance of a particular class given the class name (dynamic) and pass parameters to its constructor.</p>
  
  <p>Something like:</p>
  
  <pre><code>Object object = createInstance("mypackage.MyClass","MyAttributeValue");
  </code></pre>
  
  <p>Where <code>"MyAttributeValue"</code> is an argument to the constructor of <code>MyClass</code>.</p>