protected String safeGetRecipientId ( MessageEnvelope envelope ) { if ( envelope != null && envelope . getRecipient ( ) != null && envelope . getRecipient ( ) . getId ( ) != null ) { return envelope . getRecipient ( ) . getId ( ) ; } return "" ; }
Retrieves the recipient ID from an envelope . It never returns null .