//Need to mark the message as streaming this so input stream
//is not closed and additional parts are not read and such
if (message != null) {
if (message.getInterceptorChain() != null) {
message.getInterceptorChain().remove(StaxInEndingInterceptor.INSTANCE);
message.getInterceptorChain().add(new StaxInEndingInterceptor(Phase.POST_INVOKE));
}
message.removeContent(XMLStreamReader.class);
final InputStream ins = message.getContent(InputStream.class);
message.removeContent(InputStream.class);