protected User safeGetRecipient ( MessageEnvelope envelope ) { if ( envelope != null && envelope . getRecipient ( ) != null && envelope . getRecipient ( ) . getId ( ) != null ) { return envelope . getRecipient ( ) ; } return new User ( ) ; }
Retrieves the recipient from an envelope . It never returns null .