Application.getApplication().invokeLater(new Runnable(){
public void run() {
try
{
MessageListItem item = new MessageListItem();
item.putField(MessageListItem.FIELD_ID, new String(getId()));
item.putField(MessageListItem.FIELD_TITLE, new String(getContact()));
item.putField(MessageListItem.FIELD_DESCRIPTION, new String(getSubject()));
Object[] result = new Object[] {item};
// Pass the event back to the JavaScript callback
ScriptableFunction onItemOpened = messageListNamespace.getOnItemOpened();