Changed parameter type for the processCallback() method.
- processCallback() now accepts HttpRequest.
- Added unit tests to cover new logic.
- Improved code in the client factory.