new DefaultContinuation<RemoteObject>(cont) {
@SuppressWarnings("unchecked")
@Override
public void onSuccess(RemoteObject remoteObject) {
try {
cont.onSuccess(RemoteObjectInvocationHandler
.newProxy(remoteObject, factory, clazz));
} catch (Exception e) {
log.warn(
"[Continuation] error invoking onSuccess implemented by client",
e);