public class ShiroContext implements AuthenticationContext {
@Override
public void login(String username, Credentials credentials) {
Subject subject = SecurityUtils.getSubject();
OpenEngSBAuthenticationToken token = new OpenEngSBAuthenticationToken(username, credentials);
subject.login(token);
}