Import applet-handling code from ISImporter