BugFix: call to Class.getSuperClass() should check null.
Use ObjectMapper to parse the JSON result of REST call.