public static Response handleRequest( RequestMethod method, String path, Resource classObj, Class clazz, GenericParams params) throws ZSAPIException { Response response = RequestUtil.request(method, path, classObj, clazz, params); if (response.isError()) { // Will throw Exception handleError(response); } return response; }