title: ModelMapper: mapping abstract classes during runtime
body: <p>I am using ModelMapper Framework (<a href="http://modelmapper.org/" rel="noreferrer">http://modelmapper.org/</a>) for mapping objects in Java.
  I have encountered a problem while mapping concrete classes (DTO to Entites) containing abstract classes.</p>
  
  <p>Example:
  Task has a list of AbstractItems. <br/>
  AbstractItems are Question and Criteria.</p>
  
  <pre><code>public class TaskDTO {
     ...
     private List&lt;AbstractItemDTO&gt; items;
  }
  </code></pre>
  
  <p>Mapping method:</p>
  
  <pre><code>// task is an TaskDTO object
  return getModelMapper().map(task, TaskEntity.class);
  </code></pre>
  
  <p>ModelMapper tries to create a new instance of AbstractItem, which throws an exception.
  Is there a way to map the abstract classes during the runtime?
  <br/>Like QuestionDTO -> Question, CriteriaDTO ->Criteria</p>