Replacing the whole trunk as it is not backward compatible.

Upgradation:
1. You may now return response objects using.
2. More generic solution.
3. Completely type safe.
4. Added java docs