docs: def __process_gprest_response(self, r=None, restType='GET'):
          """Returns the processed response for rest calls
          """
          if r is None:
              logging.info('No response for REST '+restType+' request')
              return None
  
          httpStatus = r.status_code
          logging.info('HTTP status code: %s', httpStatus)
  
          if httpStatus == requests.codes.ok or \
              httpStatus == requests.codes.created:
              jsonR = r.json()
              if jsonR:
                  statusStr = 'REST response status: %s' % \
                      jsonR.get(self.__RESPONSE_STATUS_KEY)
                  msgStr = 'REST response message: %s' % \
                      jsonR.get(self.__RESPONSE_MESSAGE_KEY)
                  logging.info(statusStr)
                  logging.info(msgStr)
                  return jsonR
              else:
                  logging.warning('Unable to parse JSON body.')
                  logging.warning(r.text)
                  return None
          logging.warning('Invalid HTTP status code.')
          logging.warning(r.text)
          return r.json()