Thanks for reporting. I added this snippet to the dwt-samples repo. The problem is, tango container crashes on storing a null value for HashMap!(Object). I added a tango ticket (1468) and a workaround in dwt-addons.