public Object getRemoteSession ( ) { Object remoteSession = super . getRemoteSession ( ) ; if ( remoteSession == null ) if ( this . getMessageSource ( ) instanceof Record ) { Record record = ( Record ) this . getMessageSource ( ) ; BaseTable table = record . getTable ( ) . getCurrentTable ( ) ; if ( DBParams . CLIENT . equals ( table . getSourceType ( ) ) ) remoteSession = ( RemoteSession ) table . getRemoteTableType ( org . jbundle . model . Remote . class ) ; // Only pass the remoteSession if remoteSession is the client part of the remote session! } return remoteSession ; }
Try to figure out the remote session that this filter belongs to . In this case the remotesession should be the RecordOwner .