{
message = generateMessage( project, build );
}
catch ( ContinuumException e )
{
throw new NotificationException( "Can't generate the message.", e );
}
msnClient.setLogin( getUsername( configuration ) );
msnClient.setPassword( getPassword( configuration ) );
try
{
msnClient.login();
for ( Iterator i = recipients.iterator(); i.hasNext(); )
{
String recipient = (String) i.next();
msnClient.sendMessage( recipient, message );
}
}
catch ( MsnException e )
{
throw new NotificationException( "Exception while sending message.", e );
}
finally
{
try
{