code: private static String getEncodedInstance(String encodedResponse) {
      if (isReturnValue(encodedResponse) || isThrownException(encodedResponse)) {
        return encodedResponse.substring(4);
      }
  
      return encodedResponse;
    }
docs: Returns a string that encodes the result of a method invocation.
  Effectively, this just removes any headers from the encoded response.
  
  @param encodedResponse
  @return string that encodes the result of a method invocation