*/
public boolean commit() throws LoginException {
// Gets the current
EZBSecurityCurrent current = SecurityCurrent.getCurrent();
// Build a new security context
EZBSecurityContext context = new SecurityContext(this.subject);
// Set it globally or in the current thread
if (this.globalContext) {
SecurityCurrent.setGlobalSecurityContext(context);
} else {
current.setSecurityContext(context);
}
return true;
}