private static void streamResponse(ClientOracle clientOracle, Object payload,
CommandSink sink, boolean asThrow) throws SerializationException {
HasValues command;
if (asThrow) {
command = new ThrowCommand();
assert payload instanceof Throwable : "Trying to throw something other than a Throwable";
// payload = new RemoteException((Throwable) payload);
} else {
command = new ReturnCommand();
}