if (isMarshalledEntity)
{
is = new InputStreamToByteArray(is);
}
AbstractReaderInterceptorContext messageBodyReaderContext = new ServerReaderInterceptorContext(interceptors, factory, type,
genericType, annotations, mediaType, request
.getHttpHeaders().getRequestHeaders(), is, request);
final Object obj = messageBodyReaderContext.proceed();
if (isMarshalledEntity)
{
InputStreamToByteArray isba = (InputStreamToByteArray) is;
final byte[] bytes = isba.toByteArray();
return new MarshalledEntity()