changes RestInteceptor class from filter to ReadInterceptor
implementation