Removed dependency to JacksonJson.
Added Generictype for Rest client.
Thanks to Adam.