rem: ret.antville_message = result.message; 
add: ret.antville_message = (result.message) ? result.message : null; 
context: function newMediaObject(blogid, username, password, fileObject) {   var usr = root.blogger.getUser(username, password);   var blog = root.blogger.getBlog(blogid.toString());   if (!blog)      throw("Couldn't find the blog " + blogid);   var level = blog.members.getMembershipLevel(usr);   var str = new java.lang.String(fileObject.bits);   var bytes = Packages.helma.util.Base64.decode(str.toCharArray());   var param = new Object();   var ret = new Object();    if (fileObject.type.substring(0, 6).toLowerCase() == "image/") {       try {         blog.images.checkAdd(usr, level);      } catch (deny) {         throw("You're not allowed to upload images to the blog " + blog.alias);      }      param.rawimage = new Packages.helma.util.MimePart(fileObject.name, bytes, fileObject.type);       param.maxheight = fileObject.antville_maxheight;       param.maxwidth = fileObject.antville_maxwidth;       var result = blog.images.evalImg(param, usr);       if (result.error)          throw("Error occured while creating new Media Object: " + result.message);       else {          var alias = param.alias;          var file = blog.images.get(alias);          file.alttext = fileObject.description;          ret.antville_staticUrl = file.getUrl();          ret.antville_popupUrl = file.getPopupUrl();          ret.antville_width = file.width;          ret.antville_height = file.height;          ret.antville_macro = "<% image name=\"" + blog.alias + "/" + alias + "\" %>";          if (file.thumbnail) {             ret.antville_popupmacro = "<% image name=\"" + blog.alias + "/" + alias + "\" as=\"popup\"%>";             ret.antville_thumbmacro = "<% image name=\"" + blog.alias + "/" + alias + "\" as=\"thumbnail\"%>";          }       }     } else {      try {         blog.files.checkAdd(usr, level);      } catch (deny) {         throw("You're not allowed to upload files to the blog " + blog.alias);       }      param.rawfile = new Packages.helma.util.MimePart(fileObject.name, bytes, fileObject.type);      var result = blog.files.evalFile(param, usr);      if (result.error)         throw("Error occured while creating new Media Object: " + result.message);      else {         var alias = buildAliasFromFile(param.rawfile, blog.files);         var file = blog.files.get(alias);         file.description = fileObject.description;         ret.antville_macro = "<% file name=\"" + blog.alias + "/" + alias + "\" %>";      }   }   ret.url = file.url;   ret.antville_alias = alias;   ret.antville_message = result.message;   return ret;}
meta: 993	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/993/8c9c36e2df5742257556e109fef07a3e65a33c99/metaWeblogAPI.js/clean/code/MetaWeblogApi/metaWeblogAPI.js