Rest client proxy implementation throws NPE when toString() called