final ClientContext clientContext = new ClientContext(client, this);
return ListenerUtil.listen(clientContext, request, null, eventHandler);
}
public boolean removeDistributedObjectListener(String id) {
final RemoveDistributedObjectListenerRequest request = new RemoveDistributedObjectListenerRequest(id);
final ClientContext clientContext = new ClientContext(client, this);
return ListenerUtil.stopListening(clientContext, request, id);
}