settings.setKeepalive("300");
settings.setTimeout("45");
try {
Method mGetStore = Objects.getMethodDescriptor(connectorView, "getPreferenceSettingsStore", TerminalView.class, null);
PreferenceSettingStore store = (PreferenceSettingStore)mGetStore.invoke(connectorView, null);
// When the settings dialog is closed, we persist the Terminal settings.
Method mSave = Objects.getMethodDescriptor(connectorView, "saveSettings", TerminalView.class, ISettingsStore.class, ITerminalConnector.class);
// we also save it in the preferences. This will keep the last change
// made to this connector as default...
mSave.invoke(connectorView, store, conn);