boolean success = false;
try {
String mtype = messageID();
Identity from = (Identity)getArg(0);
try {
String s = (String)getArg(1);
collaborator.notify(mtype, s, from);
success = true;
}
catch (ClassCastException cce) {
// Argument isn't a string, so send it as an object
Object oarg = getArg(1);
collaborator.notify(mtype, oarg, from);
success = true;
}
}
catch (Exception e) {
success = false;
}
return success;