pplying the generic type information
 with the entity. For example the following code shows how to create
 a response containing the result of a method invoked via reflection:
 <pre>Method method = ...;
 GenericEntity&lt;Object&gt; entity = new GenericEntity&lt;Object&gt;(
    method.invoke(...), method.getGenericReturnType());
 Response response = Response.ok(entity).build();</pre></li>
 <p>The above obtains the generic type from the return type of the method,
 the raw type is the class of entity.</p>
 </o