You need to use the XWiki coding style (it's missing a lot of spaces ATM: "try{", "}catch", "){"