}
}
//copy reply into response...
if (reply.hasStream()) {
jres.getReply().setStatus(reply.getStatus());
InputStream is = reply.openStream();
try {
ServletOutputStream out = jres.getOutputStream();
byte buffer[] = new byte[512];
int len = -1;
while((len = is.read(buffer, 0, 512)) != -1)