code: protected String extractResultData(String response) throws IOException, WssServiceException {
          // parse response
          ResultEnvelope envelope = gson.fromJson(response, ResultEnvelope.class);
          if (envelope == null) {
              throw new WssServiceException("Empty response, response data is: " + response);
          }
  
          // extract info from envelope
          String message = envelope.getMessage();
          String data = envelope.getData();
          String requestToken = envelope.getRequestToken();
  
          // service fault ?
          if (ResultEnvelope.STATUS_SUCCESS != envelope.getStatus()) {
              throw new WssServiceException(message + ": " + data, requestToken);
          }
          return data;
      }
docs: The method extract the data from the given {@link org.whitesource.agent.api.dispatch.ResultEnvelope}.
  
  @param response HTTP response as string.
  @return String with logical result in JSON format.
  @throws IOException
  @throws WssServiceException