protected static SessionSecurityDetails tryLogin(Object aCollaboratorID, char[] aPassword) throws Exception {
if (get() != null) {
throw new ClipsException("Внутренняя ошибка: попытка зарегистрировать сессию во второй раз.");
}
LoginRemoteAbstarct loginBean = getLoginBean();
int sessId = loginBean.login(aCollaboratorID,
loginBean.getEncryptor().encryptPasswd(aPassword));
return loginBean.getSessionRemote(sessId);
}
protected static LoginRemoteAbstarct getLoginBean() throws NamingException {