Samples to demonstrate RestClient + JavaDoc

Changed this method to private as there are numerous public methods to access it.