sub = subjectHelper.makeSubject(user, userpwd);
} catch (Exception e) {
String emsg = "Failed to make subject of user "+user;
logger.logStack(Logger.ERROR, emsg, e);
LoginException ex= new LoginException(emsg);
ex.initCause(e);
throw ex;
}
}
if (sub != null) {
lc = new LoginContext(name, sub, cbh);