rs.ext"><code>MessageBodyWriter</code></a>:

 <pre>List&lt;String&gt; list = new ArrayList&lt;String&gt;();
 GenericEntity&lt;List&lt;String&gt;&gt; entity = new GenericEntity&lt;List&lt;String&gt;&gt;(list) {};
 Response response = Response.ok(entity).build();</pre>

 <p>where <code>list</code> is the instance of <code>List&lt;String&gt;</code>
 that will form the response body and entity is an instance of an anonymous
 subclass of <code>GenericEntity</code>.</p></li>
 <li>Create an instance directly by su