Removed unnecessary System.err.println
Refactored RestClient