correlationID = requestor.createCorrelationID();
remoteObjects.put(value, correlationID);
}
if (requestor instanceof MultiplexingRequestor) {
MultiplexingRequestor multiplexingRequestor = (MultiplexingRequestor) requestor;
multiplexingRequestor.registerHandler(correlationID, new AsyncReplyHandler(value, marshaller));
}
else {
throw new IllegalArgumentException("You can only pass remote references with a MultiplexingRequestor");
}
return correlationID;