I believe you should use namespace instead of unit.
Regarding the System object I believe it should be available as default but otherwise it exists in the java.lang namespace.
Unfortunately I'm not at my own computer right now, so I can't test the code myself.
Bookmarks