private void connect(ModelCommunicator mc) {
			mc.setModelID(modelIndex);
			if (modelClass != null) {
				mc.setModelClass(modelClass);
				if (modelClass.equals(PageMolecularViewer.class.getName())) {
					jmolConnector.linkModelListener(modelIndex, mc);
				}
				else if (modelClass.equals(PageMd3d.class.getName())) {
					mw3dConnector.linkModelListener(modelIndex, mc);
				}
				else if (modelClass.equals(PageJContainer.class.getName())
						|| modelClass.equals(PageApplet.class.getName())) {
					pluginConnector.linkModelCommunicator(modelIndex, mc);
				}
				else {
					mw2dConnector.linkModelListener(modelIndex, mc);
				}
				modelClass = null;
			}
			else {
				mw2dConnector.linkModelListener(modelIndex, mc); // backward compatiblity
			}
		}