dhanji/sitebricks — pull request #46 by mgenov (2012-11-27 09:30:20+00:00)
Title: Adds support for transporting of generic types (using TypeLiteral<T>)

Adds support for reading of generic type from request and from the response.

Here are some example usages:

```java

List personList = request.read(new TypeLiteral>() {}).as(Json.class);

```

Also the same functionality could be applied and on the response of the web client

```java
WebResponse response = ...
List personList = response.to(new TypeLiteral>() {}).using(Json.class);
```