if ( !bReturnFullText && returnRawData && rp.getResponse().isSuccess() )
{
try
{
//return the bytes like we do in shares
DocumentFileInterface dfp = (DocumentFileInterface) rp.getData();
if (null != dfp) {
ByteArrayOutputRepresentation rep = new ByteArrayOutputRepresentation(MediaType.valueOf(dfp.mediaType));
rep.setOutputBytes(dfp.bytes);
return rep;
}