// connect
client = DctmDriver.clientx.getLocalClient();
sessionMgr = client.newSessionManager();
// create an IDfLoginInfo object named loginInfoObj
IDfLoginInfo loginInfoObj = DctmDriver.clientx.getLoginInfo();
loginInfoObj.setUser(form.getUser());
loginInfoObj.setPassword(form.getPassword());
loginInfoObj.setDomain(form.getDomain());
// bind the Session Manager to the login info
sessionMgr.setIdentity(form.getDocbase(), loginInfoObj);
session = sessionMgr.newSession(form.getDocbase());
} catch (DfException e) {