sp.declare("Peter.foo", {
	onInitialize: function(i_self) {

		Ext.Loader.setConfig({
			enabled: true,
			paths: {
				"IceCap": "/mule-apps/icecap/app"
			}
		});


		var i_emulator = Ext.create("IceCap.view.Main", {
			func: "wrksplf"
		});

		var i_window = Ext.widget("window", {
			width: 800,
			height: 600,
			layout: "fit",
			resizable: false,
			closable: true,
			collapsible: true,
			items: [
				i_emulator
			],
			onEsc: Ext.emptyFn
		});

		i_window.show();

		return null;
	}
});
