}
private static NotificationListener toRemoteNotificationListener(
final ObjectNotificationListener listener){
return new RemoteNotificationListener(){
public void handleNotification(Notification notification,
Object handback) {
listener.handleNotification(toObjectNotification(notification),
handback);
}