fixed setRawBody() returns resource representation