* @return the return value from the invocation
* @throws Throwable
*/
public Object invoke(InputStream inputStream, Object param, Connector streamConnector) throws Throwable
{
StreamServer streamServer = new StreamServer(inputStream, streamConnector);
String locator = streamServer.getInvokerLocator();
// now call on target server and pass locator for stream callbacks
InvocationRequest invocationRequest = new InvocationRequest(sessionId, subsystem, param, null, null, null);
return invoke(new InternalInvocation(InternalInvocation.ADDSTREAMCALLBACK, new Object[]{locator, invocationRequest}), null);
}