final ScriptableFunction onComplete = (ScriptableFunction) args[0];
final Scriptable scriptInvitations = (Scriptable) args[1];
final BBMInvitationRequest[] invitations = this.scriptInvitesToJava(scriptInvitations);
this.validateInvitations(invitations);
Dispatcher.getInstance().dispatch(new DispatchableEvent(null) {
protected void dispatch() {
try {
_uiService.inviteToBBM(invitations);
} catch(Exception e) {
Util.logError("UIService#inviteToBBM(BBMInvitationRequest[]) threw " + e);