title: Need to create a method with custom type
body: <p>I have a method as mentioned below :  </p>
  
  <pre><code>protected Super&lt;?&gt; generateSuper(Serializable object) throws IOException   {
          Object data = getData(object);
          Super&lt;Object&gt; sup = new SuperImpl&lt;Object&gt;(data);
          return sup;
   }
  </code></pre>
  
  <p>On this line , I want to pass custom type. How can i do this?
  For example : I want to create Super of any other class type.
  Can I pass any argument to the method that can be passed at the place of byte[] in the method?</p>
  
  <p>The class SuperImpl looks like :</p>
  
  <pre><code>public class SuperImpl&lt;T&gt; implements Super&lt;T&gt;{
      public SuperImpl(T data) {  
      }   
  } 
  </code></pre>