.getImConversation(new Screenname(to));
imConversation.open();
imConversation.addConversationListener(new AimConversationListener());
if (imConversation.canSendMessage()) {
messageCount++;
imConversation.sendMessage(new SimpleMessage(message));
} else {
log.error("Cound not send the message to: " + to);
throw new IMException("Cound not send the message to: " + to);
}
imConversation.close();