Fixed issue with not creating response correctly.

Non-accessible and inner classes were causing issues. Now as long as it
is a proper model object (no arg constructor) it will work fine.