* @param recipient
* @return a MessageRecipient
* @throws RecipientException if there was a problem.
*/
private MessageRecipient createMessageRecipient(Recipient recipient) throws RecipientException {
MessageRecipient result = new MessageRecipient();
if (LOGGER.isDebugEnabled()) {
LOGGER.debug("Entered createMessageRecipient");
}
setAddress(result, recipient.getAddress());
result.setDeviceName(recipient.getDeviceName());
// @todo only do this if recipient.getChannel() isn't null?
result.setChannelName(recipient.getChannel());
if (LOGGER.isDebugEnabled()) {
LOGGER.debug("Exited createMessageRecipient");
}