I have an api function that wants a Class<T> - how do I give it the class of a List<String>?
<p>I'm using <code>List.class</code> because <code>List&lt;String&gt;.class</code> is wrong. Is there a syntax that gets the class of the parametrized class?</p>

<p>Code:</p>

<pre><code>import java.util.List;
import org.apache.camel.Message;
...
    Message m = exchange.getIn();
    List&lt;String&gt; serviceIds = null;
    serviceIds = m.getHeader("serviceId", List.class);
</code></pre>

<p>Of course I would rather have:</p>

<pre><code>    serviceIds = m.getHeader("serviceId", List&lt;String&gt;.class);
</code></pre>

<p>to ensure that getHeader would return null if a list of something not strings was in the header.</p>
