ModelMapper converter - not working
<p>I'm using ModelMapper in my rest apps.</p>

<p>I have to convert List to List.</p>

<p>This is my code:</p>

<pre><code> Converter&lt;List&lt;UserRole&gt;,List&lt;String&gt;&gt; listConverter = new Converter&lt;List&lt;UserRole&gt;, List&lt;String&gt;&gt;() {
    public List&lt;String&gt; convert(MappingContext&lt;List&lt;UserRole&gt;, List&lt;String&gt;&gt; context) {
        List&lt;String&gt; target = new ArrayList&lt;String&gt;();
        List&lt;UserRole&gt; userRoles = context.getSource();
        for (UserRole userRole : userRoles) {
            target.add(userRole.getRole().getName());
        }
        return target;
    }
};

PropertyMap&lt;User, UserDTO&gt; propertiesForConvertToDto = new PropertyMap&lt;User, UserDTO&gt;() {
    protected void configure() {
        using(listConverter).map(source.getUserRoles()).setRoles(null);
    }
};
</code></pre>

<p>When I'm running app I get this error:</p>

<pre><code>    HTTP Status 500 - Request processing failed; nested exception is org.modelmapper.MappingException: ModelMapper mapping errors:

type Exception report

message Request processing failed; nested exception is org.modelmapper.MappingException: ModelMapper mapping errors:

description The server encountered an internal error that prevented it from fulfilling this request.

exception

org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.modelmapper.MappingException: ModelMapper mapping errors:

1) Failed to instantiate instance of destination java.util.List. Ensure that java.util.List has a non-private no-argument constructor.
Caused by: java.lang.NoSuchMethodException: java.util.List.&lt;init&gt;()
    at java.lang.Class.getConstructor0(Class.java:3082)
    at java.lang.Class.getDeclaredConstructor(Class.java:2178)
    at org.modelmapper.internal.MappingEngineImpl.instantiate(MappingEngineImpl.java:366)
    at org.modelmapper.internal.MappingEngineImpl.createDestination(MappingEngineImpl.java:382)
</code></pre>

<p>Can You help me? I'm trying solve this problem for five hours. When I'm debugging I knew that converter work correctly. May don't I correctly called converter?</p>