public static RecordOwner getRecordOwner ( RecordOwnerParent recordOwnerParent ) { if ( recordOwnerParent instanceof RecordOwner ) return ( RecordOwner ) recordOwnerParent ; // Duh RecordOwner recordOwner = null ; if ( recordOwnerParent != null ) if ( recordOwnerParent . getTask ( ) != null ) if ( recordOwnerParent . getTask ( ) . getApplication ( ) != null ) recordOwner = ( RecordOwner ) recordOwnerParent . getTask ( ) . getApplication ( ) . getSystemRecordOwner ( ) ; return recordOwner ; }
Get a recordowner from this recordOwnerParent . This method does a deep search using the listeners and the database connections to find a recordowner .