code: public Text getContentAsText() {
          if (contentType == ContentType.XML || 
              contentType == ContentType.JSON ||
              contentType == ContentType.TEXT) {
              return new Text(content);         
          }
          throw new UnsupportedOperationException(
          "Cannot convert binary data to Text.");
      }
docs: /* (non-Javadoc)
  @see com.marklogic.mapreduce.MarkLogicDocument#getContentAsText()