else if(InternalInvocation.ADDSTREAMCALLBACK.equals(methodName))
{
StreamHandler streamHandler = getStreamHandler(invocation);
if(handler instanceof StreamInvocationHandler)
{
InternalInvocation inv = (InternalInvocation)invocation.getParameter();
// second parameter should be the param payload
result = ((StreamInvocationHandler)handler).
handleStream(streamHandler, (InvocationRequest)inv.getParameters()[1]);
}
else
{
log.error("Client request is an InputStream, but the registered handlers do not " +
"implement the StreamInvocationHandler interface, so could not process call.");