Changed factory code to favor the App code base and not the Applet code.