I heed to his a callback method after all REST call. I have already found a method to call before REST call, but after eludes me. Here's the code:
/// This method Gets called prior to dispatch of the request./// that you want to be executed for EVERY request./// request will NOT be dispatched according to the UrlMap.



