How to pass list<object> param generically
<p>This is my generic construtor</p>

<pre><code>public TreeContainer(Class&lt;T&gt; type, Object parentPID, List&lt;Object&gt; childrensPID) throws IllegalArgumentException {
    super(type);
    this.parentPID = parentPID;
    this.childrensPID = childrensPID;
}
</code></pre>

<p>This is my bean (with getter setter)</p>

<pre><code>public class DirectoryBean implements Serializable {
      private long id;
      private String name;
      private DirectoryBean parent;
      private List&lt;DirectoryBean&gt; childrens;    
}
</code></pre>

<p>I create a new Tree Container like this</p>

<pre><code>TreeContainer&lt;DirectoryBean&gt; treeContainer = new TreeContainer&lt;DirectoryBean&gt;(DirectoryBean.class,"parent", "childrens" );
</code></pre>

<p>But the "childrens" parameter is illegal, how can i pass the list params in this situation</p>
