Discussed in http://elasticsearch-users.115913.n3.nabble.com/Intercept-transport-client-http-client-actions-tp2685929p2685929.html