}
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]);