private static ChannelServiceFactory createNewStack() {
		//LAYER 1: basic
		ChannelServiceFactory basic = ChannelServiceFactory.createFactory(null);
		
		//LAYER 2: threadpool
		Map<String, Object> props3 = new HashMap<String, Object>();
		props3.put(ChannelServiceFactory.KEY_IMPLEMENTATION_CLASS, ChannelServiceFactory.VAL_THREAD_CHANNEL_MGR);
		props3.put(ChannelServiceFactory.KEY_CHILD_CHANNELMGR_FACTORY, basic);
		ChannelServiceFactory threadedFactory = ChannelServiceFactory.createFactory(props3);
		
		//LAYER 3: secure
		Map<String, Object> props2 = new HashMap<String, Object>();
		props2.put(ChannelServiceFactory.KEY_IMPLEMENTATION_CLASS, ChannelServiceFactory.VAL_SECURE_CHANNEL_MGR);
		props2.put(ChannelServiceFactory.KEY_CHILD_CHANNELMGR_FACTORY, threadedFactory);
		ChannelServiceFactory secureFactory = ChannelServiceFactory.createFactory(props2);
		
		//Layer 4: catch log exceptions thrown from the clients listeners
		Map<String, Object> props4 = new HashMap<String, Object>();
		props4.put(ChannelServiceFactory.KEY_IMPLEMENTATION_CLASS, ChannelServiceFactory.VAL_EXCEPTION_CHANNEL_MGR);
		props4.put(ChannelServiceFactory.KEY_CHILD_CHANNELMGR_FACTORY, secureFactory);
		ChannelServiceFactory excFactory = ChannelServiceFactory.createFactory(props4);
		
		return excFactory;		
	}